Hier mein befehl:
ocmd:duty(playerid,params[])
{
if(isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Polizist");
if(IsPlayerInRangeOfPoint(playerid,7,197.9491,168.8688,1003.0234))
if(GetPVarInt(playerid,"Duty")=0)return SendClientMessage(palyerid,BLAU,"Du bist nun Off-duty"); SetPVarInt(playerid,"Duty",0);//hier sind die Fehler (Zeile 248)
SetPVarInt(playerid,"Duty",1);
SendClientMessage(playerid,GRUEN,"Du bist nun On-Duty");
return 1;
Hier die Fehler
C:\Users\Michael\Desktop\Server\gamemodes\Reallife2.pwn(248) : warning 211: possibly unintended assignment
C:\Users\Michael\Desktop\Server\gamemodes\Reallife2.pwn(248) : error 022: must be lvalue (non-constant)
C:\Users\Michael\Desktop\Server\gamemodes\Reallife2.pwn(248) : warning 215: expression has no effect
C:\Users\Michael\Desktop\Server\gamemodes\Reallife2.pwn(248) : error 001: expected token: ";", but found ")"
C:\Users\Michael\Desktop\Server\gamemodes\Reallife2.pwn(248) : error 029: invalid expression, assumed zero
C:\Users\Michael\Desktop\Server\gamemodes\Reallife2.pwn(248) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Ich wollte das, wenn man /duty eingibt On-Duty geht aber auch wenn man es nochmal eingibt Off-Duty