Vehicle Problem.
#1

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(playeridCOLOR_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.
Reply
#2

You need to format first. Try this

new string[144];
format(string, sizeof(string), "[Vehicle Lead %s].", vehicleLead);
SendClientMSG(playerid, COLOR_LIGHTGREY, string);
Reply
#3

Isnt working at all
Reply
#4

pawn Код:
SendClientMSG(playerid, COLOR_LIGHTGREY, "[Vehicle Lead %i].", vehicleLead[vehicleid]);
Reply
#5

Nvm fixed already
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)