SetSkin help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetSkin help. (
/showthread.php?tid=214457)
SetSkin help. -
Face9000 - 21.01.2011
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?
Re: SetSkin help. -
Fool - 21.01.2011
You did " ) " instead of " } "
Re: SetSkin help. -
Face9000 - 21.01.2011
Quote:
Originally Posted by Porsche911
You did " ) " instead of " } "
|
Umh?Where?
Re: SetSkin help. -
Calgon - 21.01.2011
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.
Re: SetSkin help. -
Fool - 21.01.2011
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.
Re: SetSkin help. -
ExeC - 21.01.2011
EDIT: Already fixed, I see.
Re: SetSkin help. -
Face9000 - 21.01.2011
Thanks all and sorry for being "noobish",this school killing me.