[HELP]SQL 2.0 plugin not work first time?
#1

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
Reply


Messages In This Thread
[HELP]SQL 2.0 plugin not work first time? - by whitedragon - 22.09.2010, 17:26
Re: [HELP]SQL 2.0 plugin not work first time? - by whitedragon - 23.09.2010, 13:01
Re: [HELP]SQL 2.0 plugin not work first time? - by Cameltoe - 23.09.2010, 13:04

Forum Jump:


Users browsing this thread: 2 Guest(s)