Where i have problem :S
#1

Register dialog and function its here, MYSQL tables.

PHP код:
    if(dialogid == 14600)
    {
       if(
response)
       {
            if(!
strlen(inputtext)) //If the player doesn't enter a pass
            
{
                
ShowPlayerDialog(playerid14600DIALOG_STYLE_INPUT "Kayit Ol""Hesabiniz sistemimizde kayıtlı değil, lьtfen kayıt olun.""Kayit Ol""Iptal");
                
SendClientMessage(playerid0xF60000AA"[R]: Lutfen sifrenizi giriniz.");
            }
            new 
PIP[50];
            new 
Query[200], Pname[24];
            
GetPlayerName(playeridPname24); //Players name
                
new escpname[24], escpass[100];
                
mysql_real_escape_string(inputtextescpass);
                
mysql_real_escape_string(Pnameescpname); //escapes the string so you cant MySQL inject
            
GetPlayerIp(playeridPIP50); //Players IP
            
format(Querysizeof(Query), "INSERT INTO `oyuncular` (`oyuncuadi`, `sifre`, `adminlevel`, `viplevel`, `score`, `onlinesure`, `jailsure`, `olumsayisi`, `killsayisi`, `para`, IP) VALUES ('%s', '%s', 0, 0, 0, 0, 0, 0, 0, 0, '%s')"escpnameescpassPIP); //Insert string
            
mysql_query(Query); //Queries
            
GameTextForPlayer(playerid"~g~Islem Tamamlandi"20003);
            
SendClientMessage(playerid0x0000D9AA"[R] Kaydiniz yapildi ve hesabiniza giris yapildi.");
            
SetPVarInt(playerid"Logged"1);
        }
    } 
MYSQL Configration its ok because i can open in phpmyadmin account and i can login to game. But i cant register in game. If i register, doing "Islem Tamamlandi / Done" but not INSERT tables to values.

Reply
#2

Anyone doesnt know?
Reply
#3

UP (please.)
Reply
#4

82 reading 0 writing.
Reply
#5

........
Reply
#6

Patiлnce, my young padawan, your time will come.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)