Textdraw not showing up?
#1

Hi, i was makeing a textdraw to display some text for each class at OnPlayerRequestClass, but for some reason it's not showing up at all. Tho textdraws isn't my strongest side either, but i made em before.

pawn Код:
OnGameModeInnit()
{
        RequestSpawn = TextDrawCreate(300.000000,250.000000," ");
    TextDrawFont(RequestSpawn, 3);
    TextDrawTextSize(RequestSpawn,3,3);
    TextDrawColor(RequestSpawn,0x33AA33AA);
}

pawn Код:
OnPlayerRequestClass()
{
    new Sstring[40];
    switch(5)
    {
        case 0:
        {
            if(team1 != 2)
            {
                format(Sstring,sizeof(Sstring),"Class 1");
                TextDrawSetString(RequestSpawn,Sstring);
                TextDrawColor(RequestSpawn,0x33AA33AA);
            }
            else
            {
                format(Sstring,sizeof(Sstring),"This class is full");
                TextDrawSetString(RequestSpawn,Sstring);
                TextDrawColor(RequestSpawn,0x33AA33AA);
            }
        }
// And so on..

pawn Код:
OnPlayerConnect()
{
    TextDrawShowForPlayer(playerid,RequestSpawn);
}
Anyone see the problem?
Reply


Messages In This Thread
Textdraw not showing up? - by Naxix - 15.10.2010, 20:04
Re: Textdraw not showing up? - by RenisiL - 17.10.2010, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)