15.05.2014, 19:53
Quote:
Most of the times, this warning is given if you return something and at the next line there is code.
|
pawn Код:
if(GetPlayerWantedLevel(ID) >=3) //Warning line
{
format(string,sizeof(string),"[POLICE ACTION] Law Enforcement Officer %s(%d) has arrested %s(%d)",pName,playerid,aName,ID);
SendClientMessageToAll(COLOR_ORANGE,string);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"You received 15,000$ and 2 score points for the arrest");
GivePlayerMoney(playerid,15000);
new rnd = random(sizeof(JailSpawnPoints));
JailTime[ID] =180;
SetPlayerInterior(ID,10);
SetPlayerPos(ID,JailSpawnPoints[rnd][0],JailSpawnPoints[rnd][1],JailSpawnPoints[rnd][2]);
SetPlayerFacingAngle(ID,JailSpawnPoints[rnd][3]);
TogglePlayerControllable(ID,1);
return 1;
}