Hallo, ich verstehe da jetzt nicht was daran falsch ist.
Mir wird folgende Fehlermeldung ausgespuckt:
s.p(324) : error 010: invalid function or declaration
s.p(326) : error 010: invalid function or declaration
s.p(329) : error 010: invalid function or declaration
s.p(331) : error 021: symbol already defined: "SendMessageToAdmins"
s.p(333) : error 010: invalid function or declaration
s.p(388) : warning 203: symbol is never used: "achat"
s.p(388) : warning 203: symbol is never used: "msg"
Code:
Code
ocmd@3:a,achat,adminchat(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin]>=1)
{
new achat[128],msg[128];
if(sscanf(params,"s",achat))return SendClientMessage(playerid,COLOR_RED,"[INFO] Nutze /a[chat] [Text]");
format(msg,sizeof(msg),"%s %s: %s",Adminrang(playerid),PlayerInfo[playerid][pName],achat);
SendMessageToAdmins(COLOR_ADMIN,msg);
}
else{
SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin!");
}
}
Alles anzeigen