03.01.2015, 12:35
about "u"
it's deprecated too!
so for example, if you wrote 233 as carid, it'll search for the player with the id 233
but couldn't find any and thus carid became 0
so that the control statement would look like:
which makes no sense and always equals true cuz 0 will always be smaller than 411 (unless youre dealing with complex numbers)
try
sscanf wiki
Quote:
u - User, takes a name, part of a name or an id and returns the id if they're connected. |
so for example, if you wrote 233 as carid, it'll search for the player with the id 233
but couldn't find any and thus carid became 0
so that the control statement would look like:
pawn Код:
if(0 < 411 || 0 > 611)
try
pawn Код:
sscanf(params, "ddd", carid, color1, color2)