OMG.. Undefined system(wtf is this)
#1

Its saying like

Код:
Undefined symbol: Text3D
but its already defined!!

Код:
Here: DeletePlayer3DTextLabel(playerid, Text3D);
Its on my aduty code

Код:
CMD:aduty(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, -1, "This is an admin only command!");
	{
			if(PlayerInfo[playerid][pAdminDuty] == 0)
			{

				SendClientMessageEx(playerid, COLOR_YELLOW, "You are now on administrative duty! Remember to check /reports!");
				PlayerInfo[playerid][pAdminDuty] = 1;
				SetPlayerHealth(playerid, 100000);
				SetPlayerArmour(playerid, 100000);
				SetPlayerColor(playerid, COLOR_REALRED);
				//SetPlayerSkin(playerid, 294); - Commented by Voltage
			    new Text3D: label2 = Create3DTextLabel("{FFFF00}Admininstrator ON Duty\n {FF0000}Do not attack!",0x008080FF,30.0,40.0,50.0,40.0,0);
	  			Attach3DTextLabelToPlayer(label2, playerid, 0.0, 0.0, 0.4);
				new string[128];
				format(string, sizeof(string), "Administrator %s(ID %d) is now on Admin Duty!", GetPlayerNameEx(playerid), playerid);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_RED, "You are now off admin duty!");
				//SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]);
			 	DeletePlayer3DTextLabel(playerid, Text3D);
				SetPlayerHealth(playerid, 100);
				SetPlayerArmour(playerid, 0);
				SetPlayerToTeamColor(playerid);
				//SetPlayerSkin(playerid, 299); - Commented by Voltage
				PlayerInfo[playerid][pAdminDuty] = 0;
				new string[128];
				format(string, sizeof(string), "Administrator %s(ID %d) is now Off Admin Duty! ( Leave the Admin to Roleplay )", GetPlayerNameEx(playerid), playerid);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
	}
	return 1;
}
Reply
#2

It's
pawn Код:
Text3D:label //Label is the name of the 3DTextLabel
//Text3D is defining what it is (Pretty much)
It should be
pawn Код:
DeletePlayer3DTextLabel(playerid, Text3D:Label2);
Reply
#3

FIXED
EDIT: shit my mistake
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)