Textdraw Problems
#1

Sup guys i got those Codes for textdraw witch show up when someone spawn
Server info etc etc
pawn Код:
//the code im using to show em so i dont use Whole Stuff like ,1,2,3,4,5
new Text:Spawn[6];

//On Spawn
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Spawn[0]);
    TextDrawShowForPlayer(playerid, Spawn[1]);
    TextDrawShowForPlayer(playerid, Spawn[2]);
    TextDrawShowForPlayer(playerid, Spawn[3]);
    TextDrawShowForPlayer(playerid, Spawn[4]);
    TextDrawShowForPlayer(playerid, Spawn[5]);
        return 1;
//How can i make the codes all in one like
//when i add this down here without the up codes i get the error
       TextDrawShowForPlayer(playerid, Spawn[i]);
//C:\Users\CraTzy\Desktop\LVDM\gamemodes\LVDM.pwn(2080) : error 017: undefined symbol "i"

}
Reply
#2

pawn Код:
for(new i = 0;i<6;i++)
{
 TextDrawShowForPlayer(playerid, Spawn[i]);
}
Reply
#3

PHP код:
for (new 0<= 5i++) {
    
TextDrawShowForPlayer(playeridSpawn[i]);

or
PHP код:
new 0;
while(
<= 5) {
    
TextDrawShowForPlayer(playeridSpawn[i]);
    
i++;

EDIT: ups... too slow.
Reply
#4

thanks +rep Both
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)