[mysql] What's wrong with this CMD ?
#3

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:

Код:
sscanf(params,"s[24]d",nom,somne)
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.
Reply


Messages In This Thread
[mysql] What's wrong with this CMD ? - by anou1 - 16.02.2014, 17:11
Re: [mysql] What's wrong with this CMD ? - by anou1 - 16.02.2014, 20:14
Re: [mysql] What's wrong with this CMD ? - by CuervO - 17.02.2014, 01:25
Re: [mysql] What's wrong with this CMD ? - by anou1 - 17.02.2014, 01:31
Re: [mysql] What's wrong with this CMD ? - by CuervO - 17.02.2014, 01:33
Re: [mysql] What's wrong with this CMD ? - by anou1 - 17.02.2014, 01:36
Re: [mysql] What's wrong with this CMD ? - by CuervO - 17.02.2014, 01:40
Re: [mysql] What's wrong with this CMD ? - by anou1 - 17.02.2014, 02:01
Re: [mysql] What's wrong with this CMD ? - by CuervO - 17.02.2014, 02:04
Re: [mysql] What's wrong with this CMD ? - by anou1 - 17.02.2014, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)