SA-MP Forums Archive
Vehicle price - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle price (/showthread.php?tid=153710)



Vehicle price - Mechscape - 10.06.2010

That is knowned /v hind aka /v price

Gamemode LARP edit.

When uncomment, then pawno library crash, commented, then no crash.

Код:
else if(strcmp(x_nr,"hind",true) == 0)
	    {
	      if(IsAnOwnableCar(idcar))
				{
					if(IsPlayerInVehicle(playerid, vehid))
	    		{
			  		if(CarInfo[idcar][cOwned]==0)
			  		{
			    			TogglePlayerControllable(playerid, 0);
							format(string,sizeof(string),"[AUTO] Sхiduk: %s | Hind: %d",CarInfo[idcar][cDescription],CarInfo[idcar][cValue]);
							SendClientMessage(playerid, COLOR_GREY, string);
			  		}
			  		else
		    		}
		    		  SendClientMessage(playerid, COLOR_GREY, "Sхiduk ei ole mььgis!");
		    		  return 1;
						}
					}
					else
					{
						SendClientMessage(playerid, COLOR_GREY, "Sa ei ole sхidukis!");
						return 1;
					}
				}
			}
I dont see any mistakes? :S


Re: Vehicle price - Mechscape - 10.06.2010

Why anyone watching only and doens't posting?


Re: Vehicle price - Jofi - 10.06.2010

Quote:
Originally Posted by Picharelo
else if(strcmp(x_nr,"hind",true) == 0)
{
if(IsAnOwnableCar(idcar))
{
if(IsPlayerInVehicle(playerid, vehid))
{
if(CarInfo[idcar][cOwned]==0)
{
TogglePlayerControllable(playerid, 0);
format(string,sizeof(string),"[AUTO] Sхiduk: %s | Hind: %d",CarInfo[idcar][cDescription],CarInfo[idcar][cValue]);
SendClientMessage(playerid, COLOR_GREY, string);
}
else
}
SendClientMessage(playerid, COLOR_GREY, "Sхiduk ei ole mььgis!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Sa ei ole sхidukis!");
return 1;
}
}
}
Change that Bracket "}" to "{"


Re: Vehicle price - Mechscape - 10.06.2010

Thanks!