SetPlayerScore help
#3

Quote:
Originally Posted by juice.j
https://sampwiki.blast.hk/wiki/SetPlayerScore

SetPlayerScore expects an integer to be passed as a parameter. Without looking at your code one can already expect tmp to be a string.

Simply convert it to an integer when calling the function.

In general: Try to read from the errors, this case was more than obvious.
How can I convert it to an integer, when someone type in /setscore 0 50 they are integers.
Reply


Messages In This Thread
SetPlayerScore help - by Memoryz - 13.05.2010, 22:24
Re: SetPlayerScore help - by juice.j - 13.05.2010, 22:58
Re: SetPlayerScore help - by Memoryz - 13.05.2010, 23:04
Re: SetPlayerScore help - by juice.j - 13.05.2010, 23:06
Re: SetPlayerScore help - by Antonio [G-RP] - 13.05.2010, 23:06
Re: SetPlayerScore help - by juice.j - 13.05.2010, 23:08
Re: SetPlayerScore help - by Antonio [G-RP] - 13.05.2010, 23:10
Re: SetPlayerScore help - by Memoryz - 14.05.2010, 00:25
Re: SetPlayerScore help - by Memoryz - 14.05.2010, 20:53
Re: SetPlayerScore help - by dice7 - 14.05.2010, 20:59

Forum Jump:


Users browsing this thread: 1 Guest(s)