Little help here ?
#4

Use strlen
pawn Код:
if(strlen(name)) > 32) return scm(playerid,-1,"blah blah");
You should also check so that the string isn't empty...

pawn Код:
if(isnull(name)) return scm(playerid,-1,"blah blah");
If you get an error using isnull, you probably don't have the function (it most likely comes with alot of includes, so chances are it will work). But if it doesn't work, put this at the top:

pawn Код:
#if !defined isnull
    #define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
Reply


Messages In This Thread
Little help here ? - by Dizzle - 09.07.2015, 19:54
Re: Little help here ? - by liquor - 09.07.2015, 19:59
Re: Little help here ? - by Dizzle - 09.07.2015, 20:10
Re: Little help here ? - by liquor - 09.07.2015, 20:17
Re: Little help here ? - by Dizzle - 09.07.2015, 20:26
Re: Little help here ? - by liquor - 09.07.2015, 20:31

Forum Jump:


Users browsing this thread: 3 Guest(s)