Script is not working?
#1

PHP код:
forward bomb(playeridvehicleid); 
Under OnGameModeInit

PHP код:
SetTimer("bomb"5000false); 
And I got this code:

PHP код:
public bomb(playeridvehicleid)
{
    if(
IsPlayerInRangeOfPoint(playerid,700,-1952.4735,661.1452,118.8698))
    {
         new 
Float:xFloat:yFloat:z;
        
GetVehiclePos(vehicleidxyz);
        
CreateExplosion(xyz1210.0);
     }
    return 
1;

I can compile it very well.
Reply
#2

my question, in what callback you write
pawn Код:
SetTimer("bomb", 5000, false);
?
Reply
#3

Try reading up on timers:

https://sampwiki.blast.hk/wiki/SetTimer
Reply
#4

Ah, I see..

Yet I set it now on TRUE but it's not working...
Reply
#5

Quote:
Originally Posted by ValentinLaw
Посмотреть сообщение
Ah, I see..

Yet I set it now on TRUE but it's not working...
you didnt answer my question.

where did you put the SetTimer ?
Reply
#6

Quote:
Originally Posted by kirollos
Посмотреть сообщение
you didnt answer my question.

where did you put the SetTimer ?
OnGameModeInit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)