zcmd optional integer help
#7

okay doesnt work =(

new code :

Код:
CMD:jail(playerid,params[])
{
	new c,id,p,t,s[128],n[32],j[32];
	if(sscanf(params,"uiI(1)",p,t,id)) return SendClientMessage(playerid,red,"USAGE:/jail [playerid] [time] [cell]");
	if(id>0) c=id-1;
	else c=0;
	SetPlayerPos(p,cspwn[c][0],cspwn[c][1],cspwn[c][2]);
	SetTimerEx("jailedd",t*60000,false,"i",p);
	GetPlayerName(playerid,n,32);
	GetPlayerName(p,j,32);
	format(s,128,"***%s has been jailed by officer %s.",j,n);
	SendClientMessageToAll(COLOR_YELLOW,s);
	jailed[playerid]=1;
	return 1;
}
still Shows me the SendClientMessage if i leave the optional one blank
Reply


Messages In This Thread
zcmd optional integer help - by THE_KNOWN - 18.03.2011, 08:27
Re: zcmd optional integer help - by iggy1 - 18.03.2011, 09:05
Re: zcmd optional integer help - by THE_KNOWN - 18.03.2011, 09:12
Re: zcmd optional integer help - by ricardo178 - 18.03.2011, 09:20
Re: zcmd optional integer help - by THE_KNOWN - 18.03.2011, 09:30
Re: zcmd optional integer help - by THE_KNOWN - 18.03.2011, 15:12
Re: zcmd optional integer help - by THE_KNOWN - 18.03.2011, 16:44

Forum Jump:


Users browsing this thread: 4 Guest(s)