hier:
new fduty
fduty = GetPlayerColor(playerid);
dcmd_onduty(playerid,params[])
{
#pragma unused params
if(SpielerInfo[playerid][alvl]<1)
{
return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin Level 1!");
}
else
{
godtimer[playerid] = SetTimerEx("godmode", 250, true, "i",playerid);
SendClientMessageToAll(0xD90000FF,"Ein Admin ist nun On Duty!!!");
SendClientMessage(playerid,COLOR_RED,"Gottmodus aktiviert");
SetPlayerColor(playerid,0xD90000FF);
}
return 1;
}
dcmd_offduty(playerid, params[])
{
#pragma unused params
if(SpielerInfo[playerid][alvl]<1)
{
return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin Level 1!");
}
else
{
KillTimer(godtimer[playerid]);
SendClientMessage(playerid,COLOR_RED,"Gottmodus deaktiviert!");
SetPlayerColor(playerid,fduty);
}
return 1;
}
und hier:
C:\Users\Simon Siggelkow\Desktop\Pawno\filterscripts\admin.pwn(1690) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.