/jail command [target]
#7

Quote:

if (strcmp("/jail", cmdtext, true, 10) == 0)
{
new target, string[256], name[24], targetname[24];
if(sscanf(params, "r", target)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /jail {target}");
SetPlayerInterior(playerid, interiorID);
SetPlayerPos(playerid, X, Y, Z);
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(target, targetname, sizeof(targetname));
format(string, sizeof(string), "%s put %s in jail.", name, targetname);
return 1;
}

My command,
but error : error 017: undefined symbol "params"
In line 219
Quote:

if(sscanf(params, "r", target)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /jail {target}");

Reply


Messages In This Thread
/jail command [target] - by florent6001 - 06.02.2014, 15:19
Re: /jail command [target] - by MrTinder - 06.02.2014, 15:24
Re : /jail command [target] - by florent6001 - 06.02.2014, 15:27
Re: Re : /jail command [target] - by Don_Cage - 06.02.2014, 15:30
Re : /jail command [target] - by florent6001 - 06.02.2014, 15:31
Re: /jail command [target] - by Don_Cage - 06.02.2014, 15:39
Re : /jail command [target] - by florent6001 - 06.02.2014, 15:41
Re: /jail command [target] - by MrTinder - 06.02.2014, 15:45
Re : /jail command [target] - by florent6001 - 06.02.2014, 15:45
Re : /jail command [target] - by florent6001 - 06.02.2014, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)