Jump to content
  • 0

Problema UPDATE Mysql la Money


mihai1122

Question

Problema intalnita (descriere):Nu inteleg ce trebuie sa adaug la sfarsit... 

	mysql_format(handle, query, sizeof(query), "UPDATE `conturi` SET `Money`='%d' WHERE `Nume`='%e'", P_Data[playerid][pMoney], GetName(playerid));// ofacem update-ul la baza de date
 	mysql_query(handle, query);// trimitem update-ul


Ero(area / rile) / warning-(ul / urile): 

C:\Users\Mihai\Desktop\WiDuAlK\gamemodes\WiD.pwn(223) : warning 225: unreachable code
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
 


Liniile de cod / sursa / script-ul(obligatoriu): 

CMD:givemoney(playerid,params[])
{
	if(!EsteManager(playerid))
 			return SCM(playerid, COLOR_FAIL, "Nu esti autorizat sa folosesti aceasta comanda");
 			
    new playa, money, query[256];
    
    if(sscanf(params,"ud", playa, money))
            return SCM(playerid, COLOR_GREY, "Foloseste: /givemoney [playerid/PartOfName] [money]");

    if(playa == INVALID_PLAYER_ID)
            return SCM(playerid, COLOR_FAIL, "jucatorul nu este conectat");

    return GivePlayerMoney(playa, money);
	mysql_format(handle, query, sizeof(query), "UPDATE `conturi` SET `Money`='%d' WHERE `Nume`='%e'", P_Data[playerid][pMoney], GetName(playerid));// ofacem update-ul la baza de date
 	mysql_query(handle, query);// trimitem update-ul
	return 1;
}


Imagini / Video (optional): ---
Ati incercat sa rezolvati singur?:Da, am incercat sa schimb din GetName(playerid) in GetName(playa), in GetName(money) , GivePlayerMoney(playerid, playa) si etc,...

 

:-???? cu ce trebuie sa inlocuiesc?

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.