errors
#5

Now i have this lol
PHP код:
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(540) : warning 217loose indentation
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(540) : error 029invalid expressionassumed zero
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(540) : error 017undefined symbol "cmd_ar"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(540) : error 029invalid expressionassumed zero
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(540) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


4 Errors

PHP код:
CMD:arrest(playerid,params[])//This
{
 new 
targetidstr[512];
 if(
IsPlayerPolice[playerid] != 1) return SendClientMessage(playerid,-1,"{ff0000}[ERROR]: You are not cop.");
 if(
sscanf(params"u"targetid)) return SendClientMessage(playerid, -1,"USAGE: /arrest [Part of Name/Player ID]");
 if(
playerid == targetid) return SendClientMessage(playerid0xFFFFFFF"{ff0000}ERROR: You can't arrest yourself");
 if(
targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid0xFFFFFFF,"{FF0000}ERROR: This player is not connected!");
 if(
IsPlayerPolice[targetid] == 1) return SendClientMessage(playerid, -2"{ff0000}You cant arrest another police officer!");
 if(!
SetPlayerAttachedObject(targetid0194186, -0.0110000.028000, -0.022000, -15.600012, -33.699977,-81.7000350.8919991.0000001.168000)) return SendClientMessage(playerid,-1,"[ERROR] This player is not cuffed!");

 new 
name [MAX_PLAYER_NAME];
 
GetPlayerName(playeridname,sizeof(name));
 new 
target[MAX_PLAYER_NAME];
 
GetPlayerName(targetidtargetsizeof(target));
 
format(strsizeof(str), "{ff0000}You have arrested %s",target);
 
SendClientMessage(playerid0xE01B1Bstr);
 
GameTextForPlayer(playerid"ARRESTED",2000,2);
 
SendClientMessageToAll(-1"%s Has been sent to jail");
 
SetPlayerInterior(playerid6);
 
ResetPlayerWeapons(playerid);
 return 
1;

Reply


Messages In This Thread
errors - by Glossy42O - 22.10.2014, 18:01
Re: errors - by IceBilizard - 22.10.2014, 18:05
Re: errors - by Glossy42O - 22.10.2014, 18:10
Re: errors - by IceBilizard - 22.10.2014, 18:13
Re: errors - by Glossy42O - 22.10.2014, 18:17
Re: errors - by IceBilizard - 22.10.2014, 18:20
Re: errors - by gurmani11 - 22.10.2014, 18:23
Re: errors - by Glossy42O - 22.10.2014, 18:26
Re: errors - by gurmani11 - 22.10.2014, 18:29
Re: errors - by Glossy42O - 22.10.2014, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)