C:\Users\Plyer\Desktop\script\gamemodes\test1.pwn(435) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Plyer\Desktop\script\gamemodes\test1.pwn(435) : error 017: undefined symbol "grund"
C:\Users\Plyer\Desktop\script\gamemodes\test1.pwn(435) : warning 215: expression has no effect
C:\Users\Plyer\Desktop\script\gamemodes\test1.pwn(435) : error 001: expected token: ";", but found "]"
C:\Users\Plyer\Desktop\script\gamemodes\test1.pwn(435) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
ocmd:su(playerid,params[])
{
if(isPlayerInFrak(playerid,1))
new grund,string[200],string2[200],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME],anzahl,pID;
if(sscanf(params,"uis",pID,anzahl,grund))return SendClientMessage(playerid,ROT,"Fehler: /su [playerid] [wanteds] [grund]");
GetPlayerName(playerid,aname,sizeof(aname));
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"WPS: %s hat dir %i WPS gegeben! Grund: %s ",name,anzahl,grund);
format(string2,sizeof(string2),"WPS: %s + %i WPS | Reporter: %s | Grund:%s",name,anzahl,aname,grund);
SendClientMessage(playerid,GREEN,string);
SendPDMessage(BLAU,string2);
givePlayerWanted(playerid,anzahl);
return 1;
}