#2

about "u"

Quote:

u - User, takes a name, part of a name or an id and returns the id if they're connected.

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:
pawn Код:
if(0 < 411 || 0 > 611)
which makes no sense and always equals true cuz 0 will always be smaller than 411 (unless youre dealing with complex numbers)

try
pawn Код:
sscanf(params, "ddd", carid, color1, color2)
sscanf wiki
Reply


Messages In This Thread
Cars - by nezo2001 - 03.01.2015, 12:27
AW: Cars - by CutX - 03.01.2015, 12:35
Re: Cars - by nezo2001 - 03.01.2015, 12:41
Re: Cars - by nezo2001 - 03.01.2015, 12:44
AW: Re: Cars - by CutX - 03.01.2015, 12:45
Re: Cars - by nezo2001 - 03.01.2015, 13:00
AW: Re: Cars - by CutX - 03.01.2015, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)