Help!!! +1 REP]
#9

Quote:
Originally Posted by Tadas
Посмотреть сообщение
Try to do like that:
as example put these codes:
pawn Код:
//On top of your script
new Text:GwTD0;
//Under OnGameModeInit
GwTD0 = CreatePlayerTextDraw(playerid,677.000000, 451.000000, "_");
    PlayerTextDrawBackgroundColor(playerid,GwTD0, 255);
    PlayerTextDrawFont(playerid,GwTD0, 1);
    PlayerTextDrawLetterSize(playerid,GwTD0, 0.500000, -2.549998);
    PlayerTextDrawColor(playerid,GwTD0, -1);
    PlayerTextDrawSetOutline(playerid,GwTD0, 0);
    PlayerTextDrawSetProportional(playerid,GwTD0, 1);
    PlayerTextDrawSetShadow(playerid,GwTD0, 1);
    PlayerTextDrawUseBox(playerid,GwTD0, 1);
    PlayerTextDrawBoxColor(playerid,GwTD0, 84215295);
    PlayerTextDrawTextSize(playerid,GwTD0, -23.000000, 0.000000);
//And as example under OnPlayerConnect
TextDrawShowForPlayer(playerid, GwTD0);
And if it works do it with others textdraws
this is just bound to fail.
we are dealing with player-textdraws, the way you declared the var
Код:
new Text:GwTD0;
is jsut wrong, it should be
Код:
new PlayerText:GwTD0[MAX_PLAYERS];

now that aside...

Quote:
Originally Posted by VanSiera
Посмотреть сообщение
Код:
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.
this is line 6141

Код:
GwTD[playerid][0] = CreatePlayerTextDraw(playerid,677.000000, 451.000000, "_");
just what others have said before,
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]
Reply


Messages In This Thread
Help!!! +1 REP] - by VanSiera - 16.04.2014, 16:27
Re: Help!!! +1 REP] - by Conradus - 16.04.2014, 16:29
Re: Help!!! +1 REP] - by Tadas - 16.04.2014, 16:30
Re: Help!!! +1 REP] - by Conradus - 16.04.2014, 16:32
Re: Help!!! +1 REP] - by Tadas - 16.04.2014, 16:33
Re: Help!!! +1 REP] - by VanSiera - 16.04.2014, 16:36
Re: Help!!! +1 REP] - by VanSiera - 16.04.2014, 16:41
Re: Help!!! +1 REP] - by Tadas - 16.04.2014, 16:45
Re: Help!!! +1 REP] - by CutX - 16.04.2014, 16:48
Re: Help!!! +1 REP] - by superrobot48 - 16.04.2014, 16:48

Forum Jump:


Users browsing this thread: 3 Guest(s)