18.11.2009, 18:12
Thanks.
But there are several issues with this function.
To not have to export a string, i worked on it.
Now i call the functions like this:
with
The Problem is:
The "printf" at the beginning gets called NEVER !
Even i wait for 2 minutes, nothing appears....
ANy suggestions, ideas ?
But there are several issues with this function.
To not have to export a string, i worked on it.
Now i call the functions like this:
Код:
SetTimerEx("TimedMsg",1500,0,"iii",playerid,1,1); //first = action, 2nd = message SetTimerEx("TimedMsg",3000,0,"iii",playerid,0,2); SetTimerEx("TimedMsg",4500,0,"iii",playerid,0,3); SetTimerEx("TimedMsg",6000,0,"iii",playerid,2,4); SetTimerEx("TimedMsg",7500,0,"iii",playerid,0,5); SetTimerEx("TimedMsg",9000,0,"iii",playerid,0,6); SetTimerEx("TimedMsg",10500,0,"iii",playerid,3,7); SetTimerEx("TimedMsg",12000,0,"iii",playerid,2,8); SetTimerEx("TimedMsg",13500,0,"iii",playerid,0,9); SetTimerEx("TimedMsg",15000,0,"iii",playerid,2,10); SetTimerEx("TimedMsg",17000,0,"iii",playerid,0,11); SetTimerEx("TimedMsg",17000,0,"iii",playerid,4,12);
Код:
public TimedMessage(playerid,param1,param2) { printf("TimedMessage:%d,%d,%d",playerid,param1,param2); new formatmsg[128]; switch(param2) { case 1:format(formatmsg,128,//msg case 2:format(formatmsg,128,//msg case 3:format(formatmsg,128,//msg case 4:format(formatmsg,128,//msg case 5:format(formatmsg,128,//msg case 6:format(formatmsg,128,//msg case 7:format(formatmsg,128,//msg case 8:format(formatmsg,128,//msg case 9:format(formatmsg,128,//msg case 10:format(formatmsg,128,//msg case 11:format(formatmsg,128,//msg case 12:format(formatmsg,128,//msg } SendClientMessage(playerid,COLOR_ORANGE,formatmsg); switch(param1) { case 1: ApplyAnimation(playerid,"ped","phone_in",4,0,0,0,1,0); case 2: ApplyAnimation(playerid,"ped","phone_talk",4,0,0,0,1,0); case 3: ConnectNPC("miss1_agent","miss1_agent"); case 4: { //some actions } } return 1; }
The "printf" at the beginning gets called NEVER !
Even i wait for 2 minutes, nothing appears....
ANy suggestions, ideas ?