Speedo Help again :/
#9

Quote:
Originally Posted by futuretrucker
Посмотреть сообщение
In OnGameModeInit
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        Speedo = TextDrawCreate(506.000000,351.000000,"_");

        SetTimer("Speedometer",1000,true);
    }
Okay, you do realize that if someone is not connected when the game mode initializes the speedometer text-draw is not going to create? It would be better to perform the functions (excluding the loop) under ...

pawn Код:
public OnPlayerConnect(playerid)
... as this way it will create the text-draw and set the timer for anyone who connects after the server is initialized.
Reply


Messages In This Thread
Speedo Help again :/ - by futuretrucker - 12.06.2011, 16:08
Re: Speedo Help again :/ - by Benjo - 12.06.2011, 16:42
Re: Speedo Help again :/ - by Iphone1234g - 12.06.2011, 16:45
Re: Speedo Help again :/ - by futuretrucker - 12.06.2011, 18:40
Re: Speedo Help again :/ - by alpha500delta - 12.06.2011, 19:16
Re: Speedo Help again :/ - by futuretrucker - 12.06.2011, 19:25
Re: Speedo Help again :/ - by alpha500delta - 12.06.2011, 19:53
Re: Speedo Help again :/ - by futuretrucker - 12.06.2011, 22:51
Re: Speedo Help again :/ - by Scenario - 12.06.2011, 23:18
Re: Speedo Help again :/ - by Benjo - 12.06.2011, 23:40

Forum Jump:


Users browsing this thread: 1 Guest(s)