Quote:
Originally Posted by [FU]Victious
pawn Код:
COMMAND:gender(playerid,params[]) { if(!sscanf(params)) return SendClientMessage(playerid,-1,"You need to select a gender!"); new strz[38]; format(strz,sizeof(strz), "Your gender is now set to: %s.",params); SetPVarString(playerid,"Gender",params); SendClientMessage(playerid, blue, strz); return 1; }
|
Hmm, By looking at that I'm guessing
if(!sscanf(params)) return SendClientMessage(playerid,-1,"You need to select a gender!");
Is checking if theres no value