Guten Tag Community,
irgendwie kriege ich hier im befehl fehler -.-
ocmd:ooc(playerid,params[])
{
new string[128],text[128];
if(sscanf(params,"s",text))return SendClientMessage(playerid,BLAU,"/ooc [Text]");
if(isPlayerAnAdmin(playerid,5))return SendClientMessage(playerid,WEIß,"")
{
format(string,sizeof(string),"( (ServerOwner %s:%s ) )",SpielerName(playerid),text);
SendClientMessageToAll(ooc,string);
}
else if(isPlayerAnAdmin(playerid,4))return SendClientMessage(playerid,WEIß,"")
{
format(string,sizeof(string),"( (Servermanager %s:%s ) )",SpielerName(playerid),text);
SendClientMessageToAll(ooc,string);
}
return 1;
}
C:\Users\KorayAhmet\Downloads\German Action Reallife\samp03e_svr_R2_win32\gamemodes\mastersselfmade.pwn(787) : error 029: invalid expression, assumed zero
C:\Users\KorayAhmet\Downloads\German Action Reallife\samp03e_svr_R2_win32\gamemodes\mastersselfmade.pwn(787) : warning 215: expression has no effect
C:\Users\KorayAhmet\Downloads\German Action Reallife\samp03e_svr_R2_win32\gamemodes\mastersselfmade.pwn(787) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.