Vehicle Problem. - 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)
+--- Thread: Vehicle Problem. (
/showthread.php?tid=585497)
Vehicle Problem. - TheLegend1 - 14.08.2015
Hey.
Well i created an system but its not working well.
PHP код:
if(vehicleLead[vehicleid] >= 50000) return SendClientError(playerid, "Your trailer can hold the maximum of 50,000 pieces of Metal.");
vehicleLead[vehicleid] += 100;
SetPVarInt(playerid, "GotDaMaterialsBro", 0);
StopPlayerHoldingObject(playerid);
SendClientMSG(playerid, COLOR_LIGHTGREY, "[Vehicle Lead %s].", vehicleLead);
When i store a boxe with KEY_YES(Y) it is suppost to show me how much lead is inside vehicle but it doesnt it shows me only Vehicle Lead . only this someone help me out please.
Re: Vehicle Problem. -
andreistalker - 14.08.2015
You need to format first. Try this
new string[144];
format(string, sizeof(string), "[Vehicle Lead %s].", vehicleLead);
SendClientMSG(playerid, COLOR_LIGHTGREY, string);
Re: Vehicle Problem. - TheLegend1 - 14.08.2015
Isnt working at all
Re: Vehicle Problem. -
Syzygy1 - 14.08.2015
pawn Код:
SendClientMSG(playerid, COLOR_LIGHTGREY, "[Vehicle Lead %i].", vehicleLead[vehicleid]);
Re: Vehicle Problem. - TheLegend1 - 14.08.2015
Nvm fixed already