SetSkin help.
#1

pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
if(PlayerVip[playerid] == 1)
{
    new skin;
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skin [skinid]");
    if(IsInvalidSkin(skin)) return SendClientMessage(playerid, COLOR_GREY, "* Invalid Skin ID");
    SetPlayerSkin(player, skin);
    SendClientMessage(player, COLOR_WHITE, "Skin changed!");
    return 1;
    )
}
What's wrong with this?
Reply
#2

You did " ) " instead of " } "
Reply
#3

Quote:
Originally Posted by Porsche911
Посмотреть сообщение
You did " ) " instead of " } "
Umh?Where?
Reply
#4

pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
if(PlayerVip[playerid] == 1)
{
    new skin;
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skin [skinid]");
    if(IsInvalidSkin(skin)) return SendClientMessage(playerid, COLOR_GREY, "* Invalid Skin ID");
    SetPlayerSkin(player, skin);
    SendClientMessage(player, COLOR_WHITE, "Skin changed!");
    return 1;
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>)
}
You should read through your code before posting, it takes seconds.
Reply
#5

pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
if(PlayerVip[playerid] == 1)
{
    new skin;
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skin [skinid]");
    if(IsInvalidSkin(skin)) return SendClientMessage(playerid, COLOR_GREY, "* Invalid Skin ID");
    SetPlayerSkin(player, skin);
    SendClientMessage(player, COLOR_WHITE, "Skin changed!");
    return 1;
    }
}
Here you go.
Reply
#6

EDIT: Already fixed, I see.
Reply
#7

Thanks all and sorry for being "noobish",this school killing me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)