[HELP] TextDraw
#1

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);
Reply
#2

Put :-
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
}
Remove playerid and put i.
Reply
#3

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?
Reply
#4

Код:
error 017: undefined symbol "i"
Reply
#5

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++)
Reply
#6

To all?
Reply
#7

What do you mean all? Just current one not all.
Reply
#8

replace player id with i
rep if i helped plz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)