Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

timer does not start (rep+)

$
0
0
PHP Code:

CMD:ja(playeridparams[])
{
    
SetPlayerPos(playerid264.6689,77.6638,1001.0391);
    
SetPlayerInterior(playerid6);
    
SetPlayerFacingAngle(playerid270.6995);
    
SetTimerEx("In123"2*60000true"i"playerid);
    
PlayerInfo[playerid][pJ123] = 120;
    return 
1;


i write the command, and it sets me to coordinations, but the text, that is supposed to be shown, does not show, i even tried to debug it, by printing inside the timer function, but that did not show either

PHP Code:

forward In123(playerid);
public 
In123(playerid)
{
    new 
string[128];
    
PlayerInfo[playerid][pJ123] --;
    
format(stringsizeof(string), "zbyva: %d"PlayerInfo[playerid][pJ123]);
    
SendClientMessage(playeridADMINstring);
    if(
PlayerInfo[playerid][pJ123] == 0)
    {
        
SpawnPlayer(playerid);
        
SendClientMessage(playeridSERVER"Byl jsi propuštěn");
    }
    return 
1;


for anyhelp i would appreciate

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>