08.12.2011, 02:40
Not really.. it doesn't return anything.
If you don't want a 'function IsACop must return a value' warning, this will be the right code:
Everything else is fine. I have a similar function in my script (with the gTeam crap too), so yeah, the code above WILL work, but your current IsACop should be replaced with mine to avoid any problems, or just put
Before the very last } in the function.
If you don't want a 'function IsACop must return a value' warning, this will be the right code:
pawn Код:
stock IsACop(playerid)
{
if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_CIA || gTeam[playerid] == TEAM_MEDIC)
{
SendClientMessage(playerid,COLOR_RED,"Law Enforcement Officers Cannot Rob Places");
}
return 1;
}
pawn Код:
return 1;
