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