SA-MP Forums Archive
[Ajuda] Undefined Symbol - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Undefined Symbol (/showthread.php?tid=605521)



Undefined Symbol - MineiriinHo - 20.04.2016

Galera, estava vendo um tutorial de como criar textdraw's clicбveis no *******, e segui o tutorial normalmente.. Fui criei os TextDraw's e os comandos, sу que na hora de compilar, dб erro nos textdraws (Sim, estгo no OnGameModeInit), o erro й : Undefined Symbol "playerid". Bom, e como eu criei diversos textdraw's, estou com preguiзa de substitui-los, pois tenho que fazer o de login e registro tambйm.. Alguem tem uma sugestгo pra definir no #define .... ?

Demonstraзгo de um dos textdraw's (Total sгo 10)
PHP код:
new PlayerText:Textdraw0[MAX_PLAYERS];
    
Textdraw0[playerid] = CreatePlayerTextDraw(playerid413.361663378.916687"usebox");
    
PlayerTextDrawLetterSize(playeridTextdraw0[playerid], 0.0000007.461111);
    
PlayerTextDrawTextSize(playeridTextdraw0[playerid], 224.7642820.000000);
    
PlayerTextDrawAlignment(playeridTextdraw0[playerid], 1);
    
PlayerTextDrawColor(playeridTextdraw0[playerid], 0);
    
PlayerTextDrawUseBox(playeridTextdraw0[playerid], true);
    
PlayerTextDrawBoxColor(playeridTextdraw0[playerid], 102);
    
PlayerTextDrawSetShadow(playeridTextdraw0[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextdraw0[playerid], 0);
    
PlayerTextDrawFont(playeridTextdraw0[playerid], 0); 



Re: Undefined Symbol - ipsLuan - 20.04.2016

OnGameModeInit nгo tem o parвmetro playerid.

No caso, por ser CreatePlayerTextDraw, coloque-a em OnPlayerConnect.


Re: Undefined Symbol - MineiriinHo - 20.04.2016

Obrigado...