Hallo
Ja das problem naja errors:
gamemodes\1.1.pwn(23877) : error 078: function uses both "return" and "return <value>"[/pwn]
Zeilen:
if(!IsACop(playerid)) {
return SendInfoMsg(playerid, "Du bist kein Polizist!"); //<- Die macht die errors
}
Callbacks
Function SendInfoMsg(playerid, Textt[])
{
new tmpstr[128];
format(tmpstr, sizeof tmpstr, " %s", Textt);
SendClientMessage(playerid, COLOR_GRAD1, tmpstr);
}
Function IsACop(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member==1 || member==2 || member==3)
{
return 1;
}
else if(leader==1 || leader==2 || leader==3)
{
return 1;
}
}
return 0;
}