Redefining something..
#1

I'm doing something like this ( example )

pawn Код:
#define SOMETHING 1
#define SOMETHING2 2

static result[MAX_PLAYERS];

public OnPlayerRequestClass(playerid,classid)
{
    switch(GetPlayerSkin(playerid))
    {
        case 9:result[playerid] = SOMETHING;
    case 10:result[playerid] = SOMETHING;
    case 11:result[playerid] = SOMETHING;
    case 12:result[playerid] = SOMETHING;
        default:result[playerid] = SOMETHING2;
    }
    return 1;
}

public OnPlayerSpawn(playerid)
{
    new string[45];
    format(string,sizeof string,"Your skin is %s",result);
    SendClientMessage(playerid,-1,string);
    return 1;
}
But it says Your skin is
And no more... then i change %s ti %d and it says Your skin is 1 or 2 , but i want that it says
Your skin is SOMETHING
or
Your skin is SOMETHING2

->I don't want numbers i want the word <-

Sorry bad english
Reply


Messages In This Thread
Redefining something.. - by SnL - 18.02.2014, 19:04
Re: Redefining something.. - by [D]ry[D]esert - 18.02.2014, 19:07
Re: Redefining something.. - by SnL - 18.02.2014, 19:10
Re: Redefining something.. - by [D]ry[D]esert - 18.02.2014, 19:13
Re: Redefining something.. - by Ada32 - 18.02.2014, 19:19
Re: Redefining something.. - by SnL - 18.02.2014, 19:20
Re: Redefining something.. - by [D]ry[D]esert - 18.02.2014, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)