[Include] y_timers - Simple timer creation and load balancing.
#17

I have encountered an issue with passing on strings.

Calling the timer
Код:
defer SpecialNumberNextQuestion(playerid, "test");
Timer's declaration
Код:
timer SpecialNumberNextQuestion[1000](playerid, string:text[])
{
	printf("Text printed: %s", text);
	SendClientMessage(playerid, COLOR_YELLOW, text);
}
When printed in-game, it just prints blank and in the console it prints out the few last characters that I printed out because it is called from OnPlayerText:


I tried to rename the variable in the timer to something else other than "text" since it seemed like it was referencing to the OnPlayerText(playerid, text[]) this text variable name but it didn't help either.

Any ideas of what I might be doing wrong?
Reply


Messages In This Thread
y_timers - Simple timer creation and load balancing. - by corne - 15.04.2015, 18:38
Re: y_timers - Simple timer creation and load balancing. - by iSkyline - 18.04.2015, 07:29
Re: y_timers - Simple timer creation and load balancing. - by dusk - 13.05.2015, 16:37
Re: y_timers - Simple timer creation and load balancing. - by Misiur - 14.05.2015, 16:45
Re: y_timers - Simple timer creation and load balancing. - by Patchwerk - 14.05.2015, 16:51
Re: y_timers - Simple timer creation and load balancing. - by Finn707 - 14.05.2015, 20:34
Re: y_timers - Simple timer creation and load balancing. - by Misiur - 15.05.2015, 09:16
Re: y_timers - Simple timer creation and load balancing. - by dusk - 20.05.2015, 18:56
Respuesta: y_timers - Simple timer creation and load balancing. - by Adoniiz - 31.05.2015, 23:23
Re: Respuesta: y_timers - Simple timer creation and load balancing. - by dusk - 01.06.2015, 16:32
Respuesta: Re: Respuesta: y_timers - Simple timer creation and load balancing. - by Adoniiz - 02.06.2015, 02:44
Re: y_timers - Simple timer creation and load balancing. - by andyandyy8 - 24.06.2015, 11:32
Re: y_timers - Simple timer creation and load balancing. - by andyandyy8 - 24.06.2015, 12:50
Re: y_timers - Simple timer creation and load balancing. - by Dodo9655 - 16.09.2016, 10:52
Re: y_timers - Simple timer creation and load balancing. - by RIDE2DAY - 19.12.2016, 17:15
Re: y_timers - Simple timer creation and load balancing. - by Crayder - 14.02.2017, 17:02
Re: y_timers - Simple timer creation and load balancing. - by Hansrutger - 22.06.2017, 16:51
Re: y_timers - Simple timer creation and load balancing. - by Chaprnks - 04.07.2017, 10:30
Re: y_timers - Simple timer creation and load balancing. - by wallee - 20.07.2017, 16:13
Re: y_timers - Simple timer creation and load balancing. - by Misiur - 20.07.2017, 16:19
Re: y_timers - Simple timer creation and load balancing. - by Dayrion - 20.07.2017, 23:54

Forum Jump:


Users browsing this thread: 2 Guest(s)