Vehicle price
#1

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
Reply
#2

Why anyone watching only and doens't posting?
Reply
#3

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 "{"
Reply
#4

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)