Problem with a loop
#2

Try:
Код:
	new Name;
	Name = personalVehicleData[i][owner];
	
	for(new i = 0; i < sizeof(personalVehicleData); i++)
	{
		if(!strcmp(GetName(playerid), Name, false))
		{
		    if(personalVehicleData[i][spawned] == 0)
		    {
			    printf("%d: %s, %d", i, personalVehicleData[i][owner], personalVehicleData[i][modelID]);
			    vNumbers ++;
			    format(string, sizeof(string), "%s\n%s", string, GetVehicleNameFromModel(personalVehicleData[i][modelID]));
		    }
		}
	}
	
	stock GetName(playerid)
	{
		new Name;
		GetPlayerName(playerid, Name, sizeof(Name));
		return 1;
	}
Reply


Messages In This Thread
Problem with a loop - by Jack_Leslie - 21.03.2016, 09:08
Re: Problem with a loop - by K0P - 21.03.2016, 09:23
Re: Problem with a loop - by Jack_Leslie - 21.03.2016, 09:26
Re: Problem with a loop - by introzen - 21.03.2016, 09:39
Re: Problem with a loop - by Jack_Leslie - 21.03.2016, 09:42
Re: Problem with a loop - by introzen - 21.03.2016, 10:10
Re: Problem with a loop - by Jack_Leslie - 21.03.2016, 10:17

Forum Jump:


Users browsing this thread: 2 Guest(s)