[HELP] TextDraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] TextDraw (
/showthread.php?tid=505792)
[HELP] TextDraw -
monster010 - 10.04.2014
I have this script. And these give me a error:
Код:
C:\local\gf.pwn(7377) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
namesv = TextDrawCreate(1.000000, 328.000000," ");
TextDrawBackgroundColor(namesv, 255);
TextDrawFont(namesv, 2);
TextDrawLetterSize(namesv, 0.500000, 1.000000);
TextDrawColor(namesv, 16711935);
TextDrawSetOutline(namesv, 1);
TextDrawSetProportional(namesv, 1);
new name[MAX_PLAYER_NAME];
new strt[256];
GetPlayerName(playerid,name,sizeof(name));
format(strt,sizeof(strt),"~b~%s",name);
TextDrawSetString(namesv,strt);
Re: [HELP] TextDraw -
Bingo - 10.04.2014
Put :-
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
}
Remove playerid and put
i.
Re: [HELP] TextDraw -
RajatPawar - 10.04.2014
http://en.wikipedia.org/wiki/Undefined
http://en.wikipedia.org/wiki/Symbol
pawn Код:
GetPlayerName(playerid,name,sizeof(name));
format(strt,sizeof(strt),"~b~%s",name);
TextDrawSetString(namesv,strt);
Код:
GetPlayerName(playerid,name,sizeof(name));
format(strt,sizeof(strt),"~b~%s",name);
TextDrawSetString(namesv,strt);
... not that hard, is it?
Re: [HELP] TextDraw -
monster010 - 10.04.2014
Код:
error 017: undefined symbol "i"
Re: [HELP] TextDraw -
Bingo - 10.04.2014
Quote:
Originally Posted by monster010
Код:
error 017: undefined symbol "i"
|
Add this
Код:
new i = 0; i < MAX_PLAYERS; i++
Remove this :-
Код:
for(new i=0; i<MAX_PLAYERS; i++)
Re: [HELP] TextDraw -
monster010 - 10.04.2014
To all?
Re: [HELP] TextDraw -
Bingo - 10.04.2014
What do you mean all? Just current one not all.
Re: [HELP] TextDraw -
shahryar2 - 10.04.2014
replace player id with i
rep if i helped plz