Problem with Textdraws
#6

Quote:
Originally Posted by SpiderWalk
Посмотреть сообщение
Yes you are!
OnGameModeInit() has no such parameter as playerid therefore the compiler sees it as undefined.
You need to create all of the textdraws in a loops, or more effeciantly under OnPlayerConnect.

pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        Stats[i] = TextDrawCreate(499.000000, 110.000000, "~r~Kills: ~w~0 ~g~Deaths: ~w~0");            
        TextDrawBackgroundColor(Stats[i], 255);    TextDrawFont(Stats[playerid], 2);    
        TextDrawLetterSize(Stats[i], 0.159999, 1.000000);    
        TextDrawColor(Stats[i], -1);    
        TextDrawSetOutline(Stats[i], 0);    
        TextDrawSetProportional(Stats[i], 1);    
        TextDrawSetShadow(Stats[i], 1);
    }
    return 1;
}
Reply


Messages In This Thread
Problem with Textdraws - by SpiderWalk - 03.02.2012, 18:06
Re: Problem with Textdraws - by Aloushi - 03.02.2012, 18:18
Re: Problem with Textdraws - by SpiderWalk - 03.02.2012, 18:28
Re: Problem with Textdraws - by [XST]O_x - 03.02.2012, 18:30
Re: Problem with Textdraws - by SpiderWalk - 03.02.2012, 18:31
Re: Problem with Textdraws - by [XST]O_x - 03.02.2012, 18:38
Re: Problem with Textdraws - by SpiderWalk - 03.02.2012, 20:53
Re: Problem with Textdraws - by Amit_B - 04.02.2012, 00:25

Forum Jump:


Users browsing this thread: 3 Guest(s)