How to give levels to everyone?
#2

You need to convert inputtext into an integer.

https://sampwiki.blast.hk/wiki/Strval

Example:
PHP код:
new string[4] = "250";
new 
iValue strval(string); // iValue is now '250
//In your case:
new ourValue strval(inputtext); 
I assume using the players score as the player ID was a mistake. You just need to add them together.
PHP код:
SetPlayerScore(iGetPlayerScore(i) + ourValue); 
Reply


Messages In This Thread
[SOLVED]How to give levels to everyone? - by AmarPlayer - 11.09.2017, 16:53
Re: How to give levels to everyone? - by Kane - 11.09.2017, 18:25
Re: How to give levels to everyone? - by AmarPlayer - 11.09.2017, 18:59

Forum Jump:


Users browsing this thread: 1 Guest(s)