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

Need help with this!

$
0
0
So I made a Pay n Spray system and when you /enter, it sets a timer for 10 seconds.

This is the code:

PHP Code:

public PNSExit()
{
    foreach (new 
Player)
    {
        if(
Player[i][InPaynSpray])
        {
            
Player[i][InPaynSpray] = 0;
            
SendClientMessage(iDARKGREEN"Auto-Voice: Enjoy your repair.");
            
            new 
tmpcar GetPlayerVehicleID(i);
               
SetVehiclePos(tmpcarPlayer[i][ExitX], Player[i][ExitY], Player[i][ExitZ]);
               
               
Player[i][ExitX] = 0;
               
Player[i][ExitY] = 0;
               
Player[i][ExitZ] = 0;
            
            for(new 
i2 0sizeof(PaynSpray); i++)
            {
                
PaynSpray[i2][IsOccupied] = 0;
            }
        }
    }
    return 
1;


This part does not work:
PHP Code:

for(new i2 0sizeof(PaynSpray); i++)
{
    
PaynSpray[i2][IsOccupied] = 0;


How can I make it so it sets the value to 0 for the Pay n Spray the player was in?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



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