CMD:onduty(playerid, params[])
{
if(pInfo[playerid][Adminlevel] < 1)return SendClientMessage(playerid, 0xFF0000FF, "You are not authorised to use this command");
new Text3D:label = Create3DTextLabel("Admin ON duty \n Do not kill", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
SendClientMessage(playerid, 0x008080FF, "You are now on Admin duty");
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"*Admin %s is now on duty!",pName);
SendClientMessageToAll(0xFF9500FF,string);
return 1;
}
CMD:offduty(playerid, params[])
{
if(pInfo[playerid][Adminlevel] < 1)return SendClientMessage(playerid, 0xFF0000FF, "You are not authorised to use this command");
DeletePlayer3DTextLabel(playerid,label);
SendClientMessage(playerid, 0x008080FF, "You are now off Admin duty");
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"*Admin %s is now off duty!",pName);
SendClientMessageToAll(0xFF9500FF,string);
return 1;
}
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\CNRSER~1\GAMEMO~1\Testing.pwn(798) : error 017: undefined symbol "label" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
new Text3D:label
new label
|
And that var label must be global var because it won't work in other CMD, only in the CMD
nduty |