#5

PHP код:
stock GetPlayerFreeVehicleId(playerid)
{
    for(new 
iMAX_PLAYERVEHICLES; ++i)
    {
        if(
PlayerVehicleInfo[playerid][i][pvModelId] == 0) return i;
    }
    if(
PlayerInfo[playerid][pAdmin] == 99999)
    {
        
MAX_PLAYERVEHICLES+1// LINE 124708
    
}
    else
    return -
1;
}   
// LINE 124712 
"MAX_PLAYERVEHICLES+1;" doesnt make any sense, because you dont initialise any value, you just add two numbers but you don't put that value to a variable. I guess what you want is to return that value:
PHP код:
stock GetPlayerFreeVehicleId(playerid)
{
    for(new 
iMAX_PLAYERVEHICLES; ++i)
    {
        if(
PlayerVehicleInfo[playerid][i][pvModelId] == 0) return i;
    }
    if(
PlayerInfo[playerid][pAdmin] == 99999)
    {
        return 
MAX_PLAYERVEHICLES+1// LINE 124708
    
}
    else return -
1;
}   
// LINE 124712 
Reply


Messages In This Thread
Help - by MrCallum - 28.08.2016, 13:25
Re: Help - by Micko123 - 28.08.2016, 13:28
Re: Help - by MrCallum - 28.08.2016, 13:35
Re: Help - by Micko123 - 28.08.2016, 13:37
Re: Help - by SoLetsGO - 28.08.2016, 13:39
Re: Help - by MrCallum - 28.08.2016, 13:42
Re: Help - by GoldenLion - 28.08.2016, 13:44
Re: Help - by SoLetsGO - 28.08.2016, 13:45
Re: Help - by MrCallum - 28.08.2016, 15:52
Re: Help - by Stinged - 28.08.2016, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)