Heey habe meinen /su befehl verbessert nur ich habe errors und weis nicht wraum kann wer helfen?
ocmd:su(playerid,params[])
{
if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
{
new pID,string[128],string2[128],wps,grund[128];
if(isPlayerInFrakt(playerid,1) || (isPlayerInFrakt(playerid,2)) || (isPlayerInFrakt(playerid,3)) || (isPlayerInFrakt(playerid,4)))
if(sscanf(params,"isi",pID,grund,wps))return SendClientMessage(playerid,Grau,"Fehler:/su [playerid] [grund] [Wanted Anzahl]");
format(string,sizeof(string),"Du hast %i Wanteds von %s bekommen! Grund: %s",wps,SpielerName(playerid),grund);
SendClientMessage(pID,Gelb,string);
format(string2,sizeof(string2),"Du hast %s ,%i Wanted gegeben! Grund: %s",SpielerName(pID),wps,grund);
SendClientMessage(playerid,Gelb,string2);
new wanted = GetPlayerWantedLevel(pID)+wps;
if(wanted => 0 && wanted <= 9) SetPlayerWantedLevel(pID,0);
else if(wanted => 10 && wanted <= 19) SetPlayerWantedLevel(pID,1);
else if(wanted => 20 && wanted <= 29) SetPlayerWantedLevel(pID,2);
else if(wanted => 30 && wanted <= 39) SetPlayerWantedLevel(pID,3);
else if(wanted => 40 && wanted <= 49) SetPlayerWantedLevel(pID,4);
else if(wanted => 50 && wanted <= 59) SetPlayerWantedLevel(pID,5);
else if(wanted => 60 && wanted <= 69) SetPlayerWantedLevel(pID,6);
}
return 1;
}
und die errors
C:\Users\Masse\Desktop\sa-mp server\gamemodes\Script.pwn(3813) : warning 211: possibly unintended assignment
C:\Users\Masse\Desktop\sa-mp server\gamemodes\Script.pwn(3813) : error 029: invalid expression, assumed zero
C:\Users\Masse\Desktop\sa-mp server\gamemodes\Script.pwn(3813) : warning 215: expression has no effect
C:\Users\Masse\Desktop\sa-mp server\gamemodes\Script.pwn(3813) : error 001: expected token: ";", but found ")"
C:\Users\Masse\Desktop\sa-mp server\gamemodes\Script.pwn(3813) : error 029: invalid expression, assumed zero
C:\Users\Masse\Desktop\sa-mp server\gamemodes\Script.pwn(3813) : 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.
Die zeile
if(wanted => 0 && wanted <= 9) SetPlayerWantedLevel(pID,0);