Define a truck in stock.
#5

Quote:
Originally Posted by Why
Посмотреть сообщение
Код:
H:\gamemodes\RP.pwn(816) : error 017: undefined symbol "IsTruck"
H:\gamemodes\RP.pwn(816) : warning 215: expression has no effect
H:\gamemodes\RP.pwn(816) : error 001: expected token: ";", but found "]"
H:\gamemodes\RP.pwn(816) : error 029: invalid expression, assumed zero
H:\gamemodes\RP.pwn(816) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
stock IsVehicleTruck(vehicleid)
{
    if(IsTruck[vehicleid] == 1) // if the vehicleid is a truck here all the trucks we made should be because of the loop we made above
        return 1; // return 1 means that's true
    // if the above part didn't get executed or wasn't true (Action below)
    return 0; // return 0 means that's false
}
It shouldn't give any errors as I compiled it myself before giving you it. Can I ask where are you placing the codes?
Reply


Messages In This Thread
Define a truck in stock. - by Why - 21.07.2012, 22:13
Re: Define a truck in stock. - by Steven82 - 21.07.2012, 22:24
Re: Define a truck in stock. - by [KHK]Khalid - 21.07.2012, 22:30
Re: Define a truck in stock. - by Why - 21.07.2012, 22:39
Re: Define a truck in stock. - by [KHK]Khalid - 21.07.2012, 22:49
Re: Define a truck in stock. - by Why - 21.07.2012, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)