SA-MP Forums Archive
[Help] Using isnull - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Using isnull (/showthread.php?tid=171686)



[Help] Using isnull - Maxips2 - 27.08.2010

I tried to use isnull function instead of using strlen, and the thing is that if I enter 2 spaces instead of 1 space, it gives me a message, like "usage" message.
Say I got the command /givegun [Player ID] [Gun ID] [Ammo], if I enter 2 spaces or more between /givegun and playerid or 2 spaces between playerid and gun id and etc', it gives me "usage" message,
Why does it keep happening? I thought that the point of using isnull is avoid from this to happened..

Any ideas?


Re: [Help] Using isnull - RyDeR` - 27.08.2010

Simply use !strlen(string[])


Re: [Help] Using isnull - Maxips2 - 27.08.2010

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
Simply use !strlen(string[])
I tried that, and I still got that problem.
And ******, how do use scanf in that kind of code?