09.07.2015, 20:17
Use strlen
You should also check so that the string isn't empty...
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(strlen(name)) > 32) return scm(playerid,-1,"blah blah");
pawn Код:
if(isnull(name)) return scm(playerid,-1,"blah blah");
pawn Код:
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif