Why does this ...
#3

The variable "id" is a string, and you're using functions that require their parameters to be integers. To get the integer value of a string use
pawn Код:
strval


Rather than having
pawn Код:
IsPlayerConnected(id)
, you should have
pawn Код:
IsPlayerConnect(strval(id))
However. You're using the 'u' parameter in sscanf, and therefore you should merely declared 'id' as an integer (- remove the array's size).
Reply


Messages In This Thread
Why does this ... - by [D]ry[D]esert - 29.04.2012, 12:07
Re: Why does this ... - by Finn - 29.04.2012, 12:08
Re: Why does this ... - by Ash. - 29.04.2012, 12:10
Re: Why does this ... - by [D]ry[D]esert - 29.04.2012, 12:10
Re: Why does this ... - by [D]ry[D]esert - 29.04.2012, 12:34
Re: Why does this ... - by Ash. - 29.04.2012, 13:30
Re: Why does this ... - by iRemix - 29.04.2012, 16:24
Re: Why does this ... - by [D]ry[D]esert - 29.04.2012, 17:07
Re: Why does this ... - by [D]ry[D]esert - 29.04.2012, 17:12
Re: Why does this ... - by Crazymax - 29.04.2012, 17:14

Forum Jump:


Users browsing this thread: 1 Guest(s)