- 0
Problema UPDATE Mysql la Money
-
Similar Content
-
- 3 replies
- 161 views
-
- 1 reply
- 159 views
-
Gamemode Hardgaming Versiunea a 4-a (no-mysql) 1 2
By n0dEv,
- luatil cai kald.
- hardgaming v4
- (and 90 more)
- 42 replies
- 8,478 views
-
- 1 answer
- 455 views
-
- 6 replies
- 510 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
mihai1122
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>
0 answers to this question
Recommended Posts