[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
#2

BUMP!! Need help:/
Reply
#3

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

Look there, might help you out !
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)