anyone know?
#2

GameTextForAll has only 3 parameters, so it should be this way
PHP код:
GameTextForAll("Text blah blah blah"10004); 
you can't format texts inside of this function, you gotta use Format function
PHP код:
#define RACE_STARTING_TIMER 40000 //40*1000 > 40 seconds multiplied by 1000 milliseconds
new raceMessage[32];
format(raceMessagesizeof(raceMessage), "Race start after: %d seconds"RACE_STARTING_TIMER);
GameTextForAll(raceMessage10004); 
or you could skip using a Format function and do it this way
PHP код:
GameTextForAll("Race starts after 40 seconds"10004); 
to make a timer, use SetTimer Function
PHP код:
forward RacingStartTimer();
//Without RACE_STARTING_TIMER macro
SetTimer("RacingStartTimer"40000false);
//With RACE_STARTING_TIMER macro
SetTimer("RacingStartTimer"RACE_STARTING_TIMER false);
public 
RacingStartTimer()
{
    
SendClinetMessageToAll("The race has started"0xFFFF0088);

Please make sure to check up these links for more info
https://sampwiki.blast.hk/wiki/GameTextForAll
https://sampwiki.blast.hk/wiki/Format
https://sampwiki.blast.hk/wiki/SetTimer

and remember to always ****** first, I'm sure similar questions were asked before
Reply


Messages In This Thread
anyone know? - by Thanks - 21.06.2017, 03:22
Re: anyone know? - by Eoussama - 21.06.2017, 03:37
Re: anyone know? - by Thanks - 21.06.2017, 14:06
Re: anyone know? - by Eoussama - 21.06.2017, 14:21
Re: anyone know? - by Thanks - 21.06.2017, 14:49

Forum Jump:


Users browsing this thread: 2 Guest(s)