17.02.2014, 01:25
u stands for userid, which will return INVALID_PLAYER_ID if the player is not connected (numerical). Otherwise it'll return the numerical player id.
You can solve it by using the 's' object instead of the 'u', that way it'll be:
And of coruse the nom must be an array defined variable.
By this way you would also need to change the script, you can no longer do IsPlayerConnected(nom) (since it requieres a numerical input), instead, you would need a loop to check thru all players if their name equals to the typed one.
You can solve it by using the 's' object instead of the 'u', that way it'll be:
Код:
sscanf(params,"s[24]d",nom,somne)
By this way you would also need to change the script, you can no longer do IsPlayerConnected(nom) (since it requieres a numerical input), instead, you would need a loop to check thru all players if their name equals to the typed one.