How to create a new function
#5

https://sampwiki.blast.hk/wiki/SetTimerEx

Код:
public OnPlayerConnect(playerid) {
    SetTimerEx("DelayedFunction", 1000, false, "i", playerid); //calling function "DelayedFunction", AFTER 1000ms, nonrepeating, passing playerid to the function
    return 1;
}

forward DelayedFunction(playerid);
public DelayedFunction(playerid) {
    SendClientMessage(playerid, -1, "This message will be delayed 1 second after "OnPlayerConnect" is called.");
}
Reply


Messages In This Thread
How to create a new function - by saffierr - 23.08.2015, 21:48
AW: How to create a new function - by MrGtasagamer - 23.08.2015, 21:55
AW: How to create a new function - by Kaliber - 23.08.2015, 21:55
Re: How to create a new function - by Abagail - 23.08.2015, 22:00
Re: How to create a new function - by rymax99 - 23.08.2015, 22:00
Re: How to create a new function - by saffierr - 23.08.2015, 22:02
Re: How to create a new function - by saffierr - 23.08.2015, 22:08
AW: Re: How to create a new function - by MrGtasagamer - 23.08.2015, 22:12
Re: How to create a new function - by saffierr - 23.08.2015, 22:20
Re: How to create a new function - by Abagail - 23.08.2015, 22:22

Forum Jump:


Users browsing this thread: 1 Guest(s)