How to fix these
#2

Same with strings too,
It all started when i added this command,
Im new to ZCMD so i might of done something wrong,

pawn Код:
CMD:arrest(playerid, params[]_
{
if (!sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Usage: /arrest [Playerid/PartOfName]");
if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "Player not found");
if (gTeam[playerid] != TEAM_CROOKSF) return SendClientMessage(playerid, COLOR_RED, "You are not a police officer");
if (id == playerid) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command on yourself");
if (gTeam[id] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED, "You cannot arrest a police officer");

new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Police Officer %s has arrested you.", name);
SendClientMessage(id, COLOR_WHITE, string);
SetTimerEx("ArrestTimer", 20000, 0, "i", playerid);
SetPlayerPos(id, 264.9072,77.9281,1001.0391);
GivePlayerMoney(playerid,-1);
ResetPlayerMoney(playerid);

GetPlayerName(id, name, sizeof(name));
format(string, sizeof(string), "You have arrested %s", name);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
Reply


Messages In This Thread
How to fix these - by JoeDaDude - 20.01.2010, 14:39
Re: How to fix these - by JoeDaDude - 20.01.2010, 14:42
Re: How to fix these - by WackoX - 20.01.2010, 14:53
Re: How to fix these - by JoeDaDude - 20.01.2010, 14:55
Re: How to fix these - by Nero_3D - 20.01.2010, 15:07
Re: How to fix these - by JoeDaDude - 20.01.2010, 15:12
Re: How to fix these - by Nero_3D - 20.01.2010, 15:19
Re: How to fix these - by JoeDaDude - 20.01.2010, 15:19
Re: How to fix these - by Nero_3D - 20.01.2010, 15:32
Re: How to fix these - by JoeDaDude - 20.01.2010, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)