25.10.2012, 21:32
Hey guys, sorry to post again in help section so soon. But...
I have this code
1. I have a fine command, but when i put DeletePlayer3DTextLabel(pId, wanted); I get an error
2. Is there anyway the color change will only change for gTeam = POLICE ? So team VAN cannot see the colour change.
Thanks guys.
I have this code
PHP код:
public OnPlayerUpdate(playerid)
{
if(gTeam[playerid] == VAN)
if(GetPlayerWantedLevel(playerid) >= 1)
{
SetPlayerColor(playerid, RED);
new Text3D:wanted = Create3DTextLabel("WANTED",RED, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(wanted, playerid, 0.0, 0.0, 0.4);
}
else
{
SetPlayerColor(playerid, ORANGE);
}
return 1;
}
Код:
C:\Users\laptop.laptop-PC\Downloads\samp03e_svr_R2_win32 - Copy\gamemodes\Gamemode.pwn(2746) : error 017: undefined symbol "wanted"
Thanks guys.