[Y_ini] Parsefile isn't loading the file correctly.
#9

Quote:
Originally Posted by Aerotactics
Посмотреть сообщение
Thanks for the help, but I don't think it worked. Backpacks seem to be working, but Player Colors are not.
pawn Код:
//PLAYER COLORS
    if (PlayerInfo[playerid][pNamecolor] == 0)
    {
        SetPlayerColor(playerid,COLOR_WHITE);
    }
    if (PlayerInfo[playerid][pNamecolor] == 1)
    {
        SetPlayerColor(playerid,COLOR_CYAN);
    }
    if (PlayerInfo[playerid][pNamecolor] == 2)
    {
        SetPlayerColor(playerid,COLOR_RED);
    }
    if (PlayerInfo[playerid][pNamecolor] == 3)
    {
        SetPlayerColor(playerid,COLOR_BLUE);
    }
    if (PlayerInfo[playerid][pNamecolor] == 4)
    {
        SetPlayerColor(playerid,COLOR_GREEN);
    }
    if (PlayerInfo[playerid][pNamecolor] == 5)
    {
        SetPlayerColor(playerid,COLOR_ORANGE);
    }
    if (PlayerInfo[playerid][pNamecolor] == 6)
    {
        SetPlayerColor(playerid,COLOR_DARKRED);
    }
    if (PlayerInfo[playerid][pNamecolor] == 7)
    {
        SetPlayerColor(playerid,COLOR_DARKBLUE);
    }
    if (PlayerInfo[playerid][pNamecolor] == 8)
    {
        SetPlayerColor(playerid,COLOR_DARKGREEN);
    }
    if (PlayerInfo[playerid][pNamecolor] == 9)
    {
        SetPlayerColor(playerid,COLOR_PINK);
    }
    if (PlayerInfo[playerid][pNamecolor] == 10)
    {
        SetPlayerColor(playerid,COLOR_VIOLET);
    }
    if (PlayerInfo[playerid][pNamecolor] == 11)
    {
        SetPlayerColor(playerid,COLOR_INDIGO);
    }
Instead of using this try to use stock and switch. If backpacks are working i don't see a reason why the rest is not loading. Make sure to recheck your script for errors and make sure that players have saved color before they connect for the first time. Else there is nothing to load.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)