Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. I know that it annoys me too but as I've said that already, I'm using 3rd party highlighter library which has some annoying bugs. The author of this library has been inactive for ages and I'm not going to fix it any time soon. I want to get rid of all the bugs not related to syntax highlighter first and then, maybe, I'll try to use different library which someone suggested in this topic. I'd suggest not to use "function" word in function name. Use "Func" instead, like "callClientFunc", that's what I do. I'm not sure maybe I made a mistake in lua.syn file which messes up. If I did messed up and someone found a fix for this then please post lua.syn file here so others can use it too. Thanks. BTW, I must admit, MTA:SE seems to be so much stable now than it used to be. I don't receive bug reports (crash reports) very often, in fact I haven't received any for 3 days now (I used to get 3-4 a day!). I really want to get this tool "bug free" but college takes most of my spare time.
  2. Trailers don't have drivers so getVehicleOccupant will fail when you want to get "driver of the trailer". Though, getVehicleController will return the driver who tows the trailer (sitting as driver in the truck towing that trailer). Wiki says it all.
  3. Trailers don't have drivers so getVehicleOccupant will fail when you want to get "driver of the trailer". Though, getVehicleController will return the driver who tows the trailer (sitting as driver in the truck towing that trailer). Wiki says it all.
  4. AFAIR, collisions on vehicles don't change only models. It's not just your boat but other vehicles too. Unless, something has changed that I don't know about.
  5. AFAIR, collisions on vehicles don't change only models. It's not just your boat but other vehicles too. Unless, something has changed that I don't know about.
  6. 50p

    Licensing

    I guess #4 is the most frequent reason.
  7. 50p

    Licensing

    I guess #4 is the most frequent reason.
  8. Lua is case-sensitive language. GetVehicleOccupant is not the same as getVehicleOccupant. You should already know that. https://wiki.multitheftauto.com/wiki/Debugging
  9. Lua is case-sensitive language. GetVehicleOccupant is not the same as getVehicleOccupant. You should already know that. https://wiki.multitheftauto.com/wiki/Debugging
  10. doReturn method must be messed up then. EDIT: I just downloaded the SDK to check what's wrong with it and can't really see anything wrong.
  11. doReturn method must be messed up then. EDIT: I just downloaded the SDK to check what's wrong with it and can't really see anything wrong.
  12. Make sure the ...GetItemData returns what you expect it to return.
  13. Make sure the ...GetItemData returns what you expect it to return.
  14. You can use grid list item data to contain price as number and text to display $ sign. https://wiki.multitheftauto.com/wiki/Gui ... etItemData
  15. You can use grid list item data to contain price as number and text to display $ sign. https://wiki.multitheftauto.com/wiki/Gui ... etItemData
  16. It's probably SDK's problem then. Or the data you have in the array is another array. What does "$ip_data['country_name']" and "$ip_data['country_code']" show when you echo it and preview in browser? They seem to be arrays too.
  17. It's probably SDK's problem then. Or the data you have in the array is another array. What does "$ip_data['country_name']" and "$ip_data['country_code']" show when you echo it and preview in browser? They seem to be arrays too.
  18. You're sending back $ip_data which is a PHP array (you return it in locateIP function). Doesn't SDK convert PHP arrays to JSON objects and then sends it back? I'm pretty sure it does. Look into doReturn function in mta_sdk.php to be sure. That's why you get Lua table back, not a string. Why would it be string if you're sending an array?
  19. You're sending back $ip_data which is a PHP array (you return it in locateIP function). Doesn't SDK convert PHP arrays to JSON objects and then sends it back? I'm pretty sure it does. Look into doReturn function in mta_sdk.php to be sure. That's why you get Lua table back, not a string. Why would it be string if you're sending an array?
  20. It's a string. It doesn't matter if it has spaces, same for custom event names (addEvent). @liamknight24, getPlaterAccount in every player event with source passed as argument will always return player account. I would advice to check if account isGuestAccount.
  21. It's a string. It doesn't matter if it has spaces, same for custom event names (addEvent). @liamknight24, getPlaterAccount in every player event with source passed as argument will always return player account. I would advice to check if account isGuestAccount.
×
×
  • Create New...