Jump to content
  • 0

Problema PNS


Invictus

Question

Problema intalnita (descriere): Dupa ce imi repara masina nu imi ia banii la PNS
Ero(area / rile) / warning-(ul / urile): Nu primesc nici o eroare.
Liniile de cod / sursa / script-ul(obligatoriu): 

 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;
		}
	}


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?  Desigur, fara reusita.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Nu am nimic care sa fie legat de repair, imi zice daca playeru are viata aia la masina si se afla in raza aia la momentu ala sa ii ia banii.

Acum 10 ore, Mister a spus:

Incearca sa pui asa

if(health < 1000.0)

Si unde ai codul asta pus? Inainte sa iti dea repair sau dupa?

 

Edited by Invictus
Link to comment
Share on other sites

  • 0

Atunci daca zici ca sistemul merge dar nu uti ia bani inlocuieste Cash[playerid] -= BizzInfo[36][bEntranceCost];    cu asta

GivePlayerCash (playerid,-BizzInfo[36][bEntranceCost]);

Si nu vad functie de reparat masina

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
Acum 1 oră, Mister a spus:

Atunci daca zici ca sistemul merge dar nu uti ia bani inlocuieste Cash[playerid] -= BizzInfo[36][bEntranceCost];    cu asta

GivePlayerCash (playerid,-BizzInfo[36][bEntranceCost]);

Si nu vad functie de reparat masina

public AfterSpray(playerid)
{
	new carid = GetPlayerVehicleID(playerid),
		Float:health,
		string[MAX_STRING];
    if(IsPlayerInRangeOfPoint(playerid,15.0,1025.0671,-1023.7895,32.1016))
	{
	    GetVehicleHealth(carid, health);
	    if(health < 1000.0)
	    {
			GivePlayerCash(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;
		}
	}
	if(IsPlayerInRangeOfPoint(playerid,15.0,719.9537,-457.2771,16.3359))
	{
	    GetVehicleHealth(carid, health);
	    if(health < 1000.0)
	    {

ia uite si tot nu merge

Edited by Invictus
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.