Jump to content
  • 0

Question

Posted

Problema intalnita (descriere): Salut. Cand dau /vtow nu se intampla nimic..
Ero(area / rile) / warning-(ul / urile): Nu am.
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:vtow(playerid, params[])
{
	new playername[24];
	GetPlayerName(playerid, playername, sizeof(playername));
	for(new i=1; i == MAX_DVEHICLES; i++)
	{
		if(VehicleCreated == VEHICLE_DEALERSHIP && strcmp(VehicleOwner[playerid], playername) == 0)
		{
			SetVehicleToRespawn(i);
		}
	}

	return 1;
}

Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da.

Respect acestei comunitati, dar mai presus respect membrilor ei !

4 answers to this question

Recommended Posts

  • 0
  • Administrator
Posted

In loc de

for(new i=1; i == MAX_DVEHICLES; i++)

pune

for(new i=1; i <= MAX_DVEHICLES; i++)

Acolo

i == MAX_DVEHICLES

inseamna ca el o sa execute acel pentru (for) cat timp i-ul este egal cu MAX_DVEHICLES. Cum i-ul este 1 la inceput, n-o sa-l execute nici o data.

  • 0
Posted

Acum, pe server cand tastez comanda respectiva imi spune ca nu exista(Unknown command), chiar daca este in fs.

Respect acestei comunitati, dar mai presus respect membrilor ei !

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.