16.04.2014, 16:48
Quote:
Try to do like that:
as example put these codes: pawn Код:
|
we are dealing with player-textdraws, the way you declared the var
Код:
new Text:GwTD0;
Код:
new PlayerText:GwTD0[MAX_PLAYERS];
now that aside...
Quote:
Код:
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 017: undefined symbol "GwTD" C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 017: undefined symbol "playerid" C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : error 029: invalid expression, assumed zero C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(6141) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Код:
GwTD[playerid][0] = CreatePlayerTextDraw(playerid,677.000000, 451.000000, "_"); |
player-textdraws are to be created in OnPlayerConnect.
So you have to move your code to OnPlayerConnect
also, about undefined symbol "GwTD"
i assume it's supposed to be a global var for the textdraws.
it should be created at the top of your script, outside of everything, global.
pawn Код:
new PlayerText:GwTD[MAX_PLAYERS][YOUR_SIZE_HERE]