all things that need to be synced should be done server side, and all things that no need to be synced - clientside.
note that not all functions available client-side are avaiable server-side and vice versa
nah,
this wasn't about his actual problem
that was just advice, becouse when you get a parametr from command it's string ? so givePlayerMoney(player, some_string_variable) could fail, right? i'm not sure about this, but its better to make tonumber when you are working with numbers
dude! copy the script! don't post screenshots!
and.. tell as which line is the 123 line that causing problem
edit:
and do
rrr = tonumber(rrr) as the first line in your function
edit2:
and dont name your variables like that
asm, rrr = this cant tell you anything
name = getPlayerFromName(asm)
this isnt nice too, "name" suggest a string, not a player element..
better name it:
targetPlayer
trashcan problem is common problem..
try to uninstall mta, remove all its files after uninstall (some will stay on your HDD for sure), then install again.. should be ok now, if not, just ignore it, leave it as trashcans, on the race this will be replaced with nos
Overwrite your data files with this.
https://community.multitheftauto.com/data.zip
Extract in [GTA San Andreas install folder]/DATA (overwrite all files)
and try again to manually connect
it should work for map files.. BUT.. you are probably 1st setting it explodable, then loading a map (new cars, not set!)
i dont see a point of checking if it false and setting to true.. after setting all to true.. it will be just the same, without "if"
probably becouse they are busy with making new versions of mta?
the one by 50p is rly good. if you dont like it, get Eclipse + download and install some extenstions/plugins for Lua.. if this is too hard, open google and type "lua editor"