Hallo liebe Comunity..
Ich habe hier einen befehl für cops erstellt "Duty"..
aber finde diesen fehler nicht
ocmd:duty(playerid)
{
if(IsACop(playerid))
{
if(CopDuty[playerid] == 0)//Zeile 195
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[128];
format(string, sizeof(string), " Officer %s meldet sich zum Dienst", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE);
CopDuty[playerid] = 1;
return 1;
}
}
}
//EDIT SRY HABE ERRORS VERGESSEN
C:\Users\Theis\Desktop\Selfmade\gamemodes\Selfmade.pwn(195) : error 028: invalid subscript (not an array or too many subscripts): "CopDuty"
C:\Users\Theis\Desktop\Selfmade\gamemodes\Selfmade.pwn(195) : warning 215: expression has no effect
C:\Users\Theis\Desktop\Selfmade\gamemodes\Selfmade.pwn(195) : error 001: expected token: ";", but found "]"
C:\Users\Theis\Desktop\Selfmade\gamemodes\Selfmade.pwn(195) : error 029: invalid expression, assumed zero
C:\Users\Theis\Desktop\Selfmade\gamemodes\Selfmade.pwn(195) : fatal error 107: too many error messages on one line
Kann mir wer sagen wo ?
MFG Rapture