11.09.2017, 18:25
You need to convert inputtext into an integer.
https://sampwiki.blast.hk/wiki/Strval
Example:
I assume using the players score as the player ID was a mistake. You just need to add them together.
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);
PHP код:
SetPlayerScore(i, GetPlayerScore(i) + ourValue);