[Ajuda] Warning's
#3

Quote:
Originally Posted by HaRdiiZin
Посмотреть сообщение
Manda a funзгo AddTollGate.
PHP код:
AddTollGate(Float:XFloat:YFloat:ZFloat:RXFloat:RYFloat:RZTollMoney)
{
    
// Loop through all tollgates
    
for (new TollGateTollGate MAX_TOLLGATESTollGate++)
    {
        
// Check if this is an empty entry
        
if (ATollGates[TollGate][GateID] == 0)
        {
            
// Create a new object for the toll-gate in it's closed status
            
CreateObject(966XYZRXRYRZ);
            
ATollGates[TollGate][GateID] = CreateObject(968XYZ+0.8RXRY-90.0RZ);
            
// Set data
            
ATollGates[TollGate][TollPrice] = TollMoney// Set the price to pay for passing the toll-gate
            
ATollGates[TollGate][GateStatus] = 0// Set the status to CLOSED
            
ATollGates[TollGate][TollX] = X// Save the X coordinates
            
ATollGates[TollGate][TollY] = Y// Save the Y coordinates
            
ATollGates[TollGate][TollZ] = Z// Save the Z coordinates
            
ATollGates[TollGate][TollRX] = RX// Save the RX coordinates
            
ATollGates[TollGate][TollRY] = RY// Save the RY coordinates
            
ATollGates[TollGate][TollRZ] = RZ// Save the RZ coordinates
            
break; // Stop the for-loop
        
}
    }

Reply


Messages In This Thread
Warning's - by MarcoAurelio - 23.10.2015, 16:24
Re: Warning's - by HaRdiiZin - 23.10.2015, 16:42
Re: Warning's - by MarcoAurelio - 23.10.2015, 16:46
Re: Warning's - by Dr_Pawno - 23.10.2015, 17:14
Re: Warning's - by MarcoAurelio - 23.10.2015, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)