[Ayuda] Hacer que solo elijan skin los que no estan registrados.
#7

Entonces no es lo que pediste... vos pediste que si el usuario estaba registrado no le deje elegir skin. "sin registrar si vean la pantalla de seleccion de skin y puedan seleccionarlo". Te has expresado mal, por eso...

pawn Код:
stock MySQL_Login(playerid)
{
    new query[300], pname[24], savingstring[20];
    GetPlayerName(playerid, pname, 24);
    format(query, sizeof(query), "SELECT * FROM playerdata WHERE user = '%s'", pname);
    mysql_query(query);
    mysql_store_result();
    while(mysql_fetch_row_format(query,"|"))
    {
        mysql_fetch_field_row(savingstring, "score"); SetPlayerScore(playerid, strval(savingstring));
        mysql_fetch_field_row(savingstring, "money"); MoneyGiven[playerid] = strval(savingstring);
        mysql_fetch_field_row(savingstring, "pos_x"); SpawnInfo[playerid][x] = strval(savingstring);
        mysql_fetch_field_row(savingstring, "skin"); SetPlayerSkin(playerid, strval(savingstring);
        mysql_fetch_field_row(savingstring, "pos_y"); SpawnInfo[playerid][y] = strval(savingstring);
        mysql_fetch_field_row(savingstring, "pos_z"); SpawnInfo[playerid][z] = strval(savingstring);
    }
    mysql_free_result();
    SendClientMessage(playerid, COLOR_VERDE, "Te has logueado correctamente.");
    Logged[playerid] = 1;
    return 1;
}
Probб asн ( mas lo anterior )
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)