ocmd:gm(playerid, params[])
{
new giveplayerid, string[128];
if(GetPVarInt(playerid,"Adminlevel") <1337)return SendClientMessage(playerid,Rot,"Dazu bist Du nicht befugt.");
{
if(sscanf(params, "u",giveplayerid)) return SendClientMessage(playerid, Blau,"Benutzung: /GM [ID]");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, Rot,"[Fehler] {FFFFFF}Der Spieler ist nicht Online.");
else
{
format(string, sizeof(string), "[Admin Control] {FF6E00}%s{FFFFFF} hat dich Unverwundbar gemacht!.", SpielerName(giveplayerid);
SendClientMessage(giveplayerid, Blau, string);
format(string, sizeof(string),"[Admin Control] {FFFFFF}Du hast {FF6E00}%s {FFFFFF} Unverwundbar gemacht.", SpielerName(giveplayerid);
SendClientMessage(playerid, Blau, string);
}
return 1;
}
C:\Users\Giuseppe\Desktop\MyServer\gamemodes\admin.pwn(10) : error 001: expected token: ",", but found ";"
C:\Users\Giuseppe\Desktop\MyServer\gamemodes\admin.pwn(12) : error 001: expected token: ",", but found ";"