Errors
#1

Hello guys, I got this Code:
PHP код:
if(PlayerInfo[playerid][pAdminDuty] == 1)
  {
       
Delete3DTextLabel(DutyLabel[playerid]);
   
DutyLabel[playerid] = Create3DTextLabel("Admin On Duty \n Do NOT Attack",0xFF000099,0,0,0,50,-1,1);
  
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid0,0,0);
 }
 else if(
PlayerInfo[playerid][pTesterDuty] == 1)
 {
     
Delete3DTextLabel(DutyLabel[playerid]);
  
DutyLabel[playerid] = Create3DTextLabel("Tester On Duty \n Do NOT Attack",0x00AA0099,0,0,0,50,-1,1);
  
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid0,0,0);
 } 
And I have those Errors:
Quote:

error 010: invalid function or declaration
error 010: invalid function or declaration

What's wrong with this
Reply
#2

replace
pawn Код:
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
with
pawn Код:
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0.0,0.0,0.7);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)