cage, uncage...
#2

At
Код:
if(sscanf(params, "uz", id, reason)) return SCM(playerid, COLOR_RED, "* Usage : /cage [PlayerID/Name] [Reason]");
Use "s" not "z" for string
Код:
if(sscanf(params, "us", id, reason)) return SCM(playerid, COLOR_RED, "* Usage : /cage [PlayerID/Name] [Reason]");
and at
Код:
format(string, sizeof(string), "*** Administrator %s have caged %s for 1 minute | Reason : %d", pName(playerid), PlayerName, reason);
Change that %d with %s because it's a string
Just like that
Код:
format(string, sizeof(string), "*** Administrator %s have caged %s for 1 minute | Reason : %s", pName(playerid), PlayerName, reason);
for other problems i don't know wait to reply from good scripters , i am just a begginer.
Reply


Messages In This Thread
cage, uncage... - by Markx - 06.04.2011, 20:12
Re: cage, uncage... - by Rock_Ro - 06.04.2011, 20:49
Re: cage, uncage... - by maramizo - 06.04.2011, 20:58
Re: cage, uncage... - by Markx - 06.04.2011, 21:19
Re: cage, uncage... - by -Rebel Son- - 06.04.2011, 22:17
Re: cage, uncage... - by Markx - 07.04.2011, 06:37

Forum Jump:


Users browsing this thread: 1 Guest(s)