Unknown command
#10

Quote:
Originally Posted by Stinged
Посмотреть сообщение
What's the size of CoreVehicles?
And can you post the code for Car_IsOwner?
Size is MAX_VEHICLES, and Car_IsOwner has nothing to do with it I guess.
But here it is:
Код:
Car_IsOwner(playerid, carid)
{
	if (!PlayerData[playerid][pLogged] || PlayerData[playerid][pID] == -1)
	    return 0;

    if ((CarData[carid][carExists] && CarData[carid][carOwner] != 0) && CarData[carid][carOwner] == PlayerData[playerid][pID])
		return 1;

	return 0;
}
Quote:
Originally Posted by Juvanii
Посмотреть сообщение
You should assign values for your variables in if statement sentence.

For Example:
PHP код:
if(CoreVehicles[vehicleid][vehRental] == 1
So the whole if statement sentence should be like this:
PHP код:
if(carid != -&& Car_IsOwner(playeridcarid) || CoreVehicles[vehicleid][vehTemporary] == || CoreVehicles[vehicleid][vehRental] == 1  && PlayerData[playerid][pRentedVehicle] == vehicleid || CoreVehicles[vehicleid][vehJob] == || (PlayerData[playerid][pFaction] != -&& CarData[carid][carFaction] == GetFactionType(playerid)) || PlayerData[playerid][pCarKeys] == carid
Not really,
Код:
CoreVehicles[vehicleid][vehRental] == 1
is same as
Код:
CoreVehicles[vehicleid][vehRental]
Reply


Messages In This Thread
Unknown command - by GoldenLion - 01.08.2016, 18:46
Re: Unknown command - by Luicy. - 01.08.2016, 18:48
Re: Unknown command - by FuNkYTheGreat - 01.08.2016, 19:17
Re: Unknown command - by GoldenLion - 02.08.2016, 08:31
Re: Unknown command - by Shinja - 02.08.2016, 09:31
Re: Unknown command - by Juvanii - 02.08.2016, 09:57
Re: Unknown command - by GoldenLion - 02.08.2016, 11:09
Re: Unknown command - by Stinged - 02.08.2016, 11:15
Re: Unknown command - by Juvanii - 02.08.2016, 11:59
Re: Unknown command - by GoldenLion - 02.08.2016, 12:21

Forum Jump:


Users browsing this thread: 4 Guest(s)