- 0
Set
-
Similar Content
-
- 4 answers
- 1,005 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
ShaggyShaggy
Versiunea Mysql: R39-6
Deci problema e urmatoarea: cand dau in dialog valoarea pe care vreau sa o setez la nivelul unui player, nu ii actualizeaza acelui player nimic.
Observatie: PlayerInfo pentru player-ul acela se schimba la valoarea pusa, dar nu se actualizeaza in baza de date.
// Am un dialog unde ii setezi nivelul unui player if(response) { if(!IsNumeric(inputtext)) return SCM(playerid, verde_inchis, "Ai introdus si alte caractere!"); new player; player = GetPVarInt(playerid, "PlayerID"); PlayerInfo[player][pNivel] = strval(inputtext); } // Si aici o functie care actualizeaza perfect la playerid dar la player-ul din set nu function UpdatePlayerInfo(playerid) { gQuery[0] = EOS; mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Nivel` = %d WHERE `ID` = '%d'", PlayerInfo[playerid][pNivel], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, gQuery, "", "", playerid); return 1; }
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.