Problem
#1

i put at ongamemodeinit and dosent work..

PHP код:
kmtimer SetTimer("KilometriParcursi"10001); // this i think works for id 0.. 
i had this at onplayerconnect and itwas fine when i starts svr..then it went faster...

PHP код:
SetTimerEx("KilometriParcursi"1000true"i"playerid); 
...what can i do?
Reply
#2

pawn Код:
// top of script

new Timer[MAX_PLAYERS];//global variable

forward KilometriParcursi(playerid);//forward it

public KilometriParcursi(playerid) {
    //do what you want here
    return 1;
}

public OnPlayerConnect(playerid) {
    Timer[playerid] = SetTimerEx("KilometriParcursi", 1000, true, "i", playerid);  
    return 1;
}

public OnPlayerDisconnect(playerid, reason) {
    KillTimer(Timer[playerid]);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)