Function should return a value
#4

Quote:
Originally Posted by Cyanide
Посмотреть сообщение
You need to create a return value if IsFBIVehicles is not true.
pawn Код:
//CODE
Here a working version

pawn Код:
stock IsFBIVehicles(playerid) {
    playerid = GetPlayerVehicleID(playerid);
    if(playerid) {
        for(new i = 9; i != sizeof fbicar; ++i) {
            if(playerid == fbicar[i]) {
                return true;
            }
        }
    }
    return false;
}
@McCarthy
Just indent your code correctly and use brackets till you are advanced enough to leave them away
Reply


Messages In This Thread
Function should return a value - by McCarthy - 18.09.2011, 09:51
Re: Function should return a value - by |_ⒾⓇⓄN_ⒹⓄG_| - 18.09.2011, 09:56
Re: Function should return a value - by Cyanide - 18.09.2011, 09:57
AW: Re: Function should return a value - by Nero_3D - 18.09.2011, 10:36
Re: Function should return a value - by McCarthy - 18.09.2011, 10:44
Re: Function should return a value - by Kush - 18.09.2011, 10:48

Forum Jump:


Users browsing this thread: 1 Guest(s)