Problem with PNS system
#1

I have a problem with my PNS system.
Afeter you enter in PNS it should take your money and put in bizz balance but it don't do this. It only repairs your car.
Код HTML:
 if(IsPlayerInRangeOfPoint(playerid,15.0,1025.0671,-1023.7895,32.1016))
	{
	    GetVehicleHealth(carid, health);
	    if(health == 1000.0)
	    {
			Cash[playerid] -= BizzInfo[36][bEntranceCost];
			Update(playerid, pCashx);
			BizzInfo[36][bTill] += BizzInfo[36][bEntranceCost];
			new str[128];
			mysql_format(SQL,str,sizeof(str),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='36'",BizzInfo[36][bTill]);
			mysql_tquery(SQL,str,"","");
			format(string,sizeof(string),"~r~-%d$", BizzInfo[36][bEntranceCost]);
   			GameTextForPlayer(playerid, string, 5000, 1);
			return 1;
		}
	}
Reply
#2

bump up
Reply
#3

I don't see a RepairVehicle() function, so something else is causing that.
Also, are you checking to be entering an area? Is it under OnPlayerUpdate?
Also:
forum.sa-mp.com/showthread.php?t=229423
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)