if (strcmp("/onduty", cmdtext, true, 10) == 0)
{
new string[50];
if(SpielerInfo[playerid][alvl]<1)
{
return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin Level 1!");
}
else
{
GetPlayerName(playerid,pname,sizeof(pname)); // hier kommt error
format(string,sizeof(string),"Admin %s ist nun On Duty!",pname);
SendClientMessageToAll(0xD40000FF,string);
godtimer[playerid] = SetTimerEx("godmode", 250, true, "i",playerid);
SendClientMessage(playerid,COLOR_RED,"Gottmodus aktiviert");
}
}
if (strcmp("/offduty", cmdtext, true, 10) == 0)
{
new string[50];
if(SpielerInfo[playerid][alvl]<1)
{
return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin Level 1!");
}
else
{
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Admin %s ist wieder Off Duty!",pname);
SendClientMessageToAll(0xD40000FF,string)
KillTimer(godtimer[playerid]);
SendClientMessage(playerid,COLOR_RED,"Gottmodus deaktiviert!");
}
}
C:\Users\Simon Siggelkow\Desktop\Pawno\filterscripts\admin.pwn(910) : error 017: undefined symbol "pname"
C:\Users\Simon Siggelkow\Desktop\Pawno\filterscripts\admin.pwn(910) : error 017: undefined symbol "pname"
C:\Users\Simon Siggelkow\Desktop\Pawno\filterscripts\admin.pwn(910) : error 029: invalid expression, assumed zero
C:\Users\Simon Siggelkow\Desktop\Pawno\filterscripts\admin.pwn(910) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.