18.02.2014, 19:04
I'm doing something like this ( example )
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
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;
}
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