[HELP] Please help mysql id player
#1

Hello today I was register account and it was fine id of that account is 0 and then I was register my second account and id of that account it 0 but it should be 1 and for every player register acc id is go 0 1 2 3 4...What is the problem this is where insert on register


so this is register part


pawn Код:
new newid = mysql_fetch_int() + 1;
            new query[2500],hIme[MAX_PLAYER_NAME];
            RPIme(playerid,hIme);
            GetPlayerIp(playerid,PlayerInfo[playerid][IP],24);
            WP_Hash(PlayerInfo[playerid][Lozinka],129,inputtext);
            format(query,2500,"INSERT INTO `users` (`ID`,`Nick`,`Lozinka`,`Ip`,`Novac`,\
            `Registriran`,`SpawnPromijena`,`Spol`,`Godine`,`Porijeklo`,`Skin`,`Clan`,`Lider`,`Admin`,`GameSage`,`Utisan`,`MjestoAdmina`,`Rank`,`Banka`,`MjestoGS`,"
,query);
            format(query,2500,"%s `Kuca`,`Materijali`,`xDroga`,`hHealH`,`hArmourH`,`Banovan`,`Stan`,`MjestoUOrg`,`Donator`,`SatiIgranja`,`zDroga`,`MozeDaGasiMobitel`,`Respekti`,",query);
            format(query,2500,"%s `RacunMobitel`,`DozvolaOruzje`,`DozvolaLetenje`,`Kredit`,`Upozoren`,`Imenik`,`Zatvoren`,`ZatvorenVrijeme`,`DozvolaPlovidba`,",query);
            format(query,2500,"%s `TimUgovor`,`KaznaUgovor`) VALUES",query);
            format(query,2500,"%s ('%d','%s','%s','%s','600','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','0','0','0','0','-1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0')",
            query,newid,hIme,PlayerInfo[playerid][Lozinka],PlayerInfo[playerid][IP],PlayerInfo[playerid][Novac]);
            mysql_query(query);
Reply


Messages In This Thread
[HELP] Please help mysql id player - by Luca12 - 25.02.2014, 23:03
Re: [HELP] Please help mysql id player - by anou1 - 25.02.2014, 23:55
Re: [HELP] Please help mysql id player - by PowerPC603 - 26.02.2014, 00:19
Re: [HELP] Please help mysql id player - by Luca12 - 26.02.2014, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)