SA-MP Forums Archive
[HELP]SQL 2.0 plugin not work first time? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]SQL 2.0 plugin not work first time? (/showthread.php?tid=178523)



[HELP]SQL 2.0 plugin not work first time? - whitedragon - 22.09.2010

pawn Код:
MySQLFetchAcctSingle(PI[playerid][SQLID], "Password", PI[playerid][Pass]);
    if(strcmp(PI[playerid][Pass],password, true ) == 0 )
    {
        new data[2048];
        MySQLFetchAcctRecord(PI[playerid][SQLID], data);
        if(mysql_num_rows() > 0)
        {
            while(mysql_fetch_row(data))
            {
                mysql_fetch_field("Admin",data); printf("%s",data); PI[playerid][Admin] = strval(data);
                mysql_fetch_field("X",data); printf("%s",data); PI[playerid][x] = floatstr(data);
                mysql_fetch_field("Y",data); printf("%s",data); PI[playerid][y] = floatstr(data);
                mysql_fetch_field("Z",data); printf("%s",data); PI[playerid][z] = floatstr(data);
                                idx++;
               }
First login i'm in corinates 0,0,0 but when i relog i'm there where i was((Moved to City)) But when i restart my server i'm back to 0,0,0 but in db is right cordinates:S


Re: [HELP]SQL 2.0 plugin not work first time? - whitedragon - 23.09.2010

BUMP!! Need help:/


Re: [HELP]SQL 2.0 plugin not work first time? - Cameltoe - 23.09.2010

https://sampforum.blast.hk/showthread.php?tid=177139

Look there, might help you out !