- 0
Problema Mysql
-
Similar Content
-
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
Mark S.
Problema intalnita (descriere): Am un server pe mysql mergea bine si decand am editat prin el comenzile, pica serverul cand folosesc comenzile /money si /setstat(doar astea 2 am observat eu)
Ero(area / rile) / warning-(ul / urile): in server .log
Liniile de cod / sursa / script-ul(obligatoriu):
if(strcmp(cmd, "/money", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /money [playerid/numejucator] [money]"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 7) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { ResetPlayerCash(playa); ConsumingMoney[playa] = 1; GivePlayerCash(playa, money); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(playa, giveplayer, sizeof(giveplayer)); new year, month,day; getdate(year, month, day); format(string, sizeof(string), "/money: %s set %s's money to $%d using /money (%d-%d-%d)", sendername, giveplayer, money, month, day, year); MoneyLog(string); format(string, sizeof(string), "{1580EA}/money: {FFFFFF}%s a setat banii lui %s pe $%d folosind /money (%d-%d-%d)", sendername, giveplayer, money, month, day, year); ABroadCast(COLOR_YELLOW,string,1); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai rangul administrativ necesar!"); } } return 1; }nu cred ca e de la comenzi, adica am pus comenzile vechi si tot asa face, de la ce o fi problema nu stiu sa rezolv erori mysql decat pwn.
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da am incercat sa pun comenzile vecchi de cand era gm ul needitat
8 answers to this question
Recommended Posts