command will not get id correctly - 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: command will not get id correctly (
/showthread.php?tid=76645)
command will not get id correctly -
CJ101 - 05.05.2009
Код:
if (!strcmp(cmd, "/joingang", true))
{
tmp = strtok(cmdtext, idx);
new skinid = strval(tmp);
if (PlayerToPoint(1,playerid,1782.6963,-1886.8224,13.3913))
{
if (skinid != 108 || skinid != 109 || skinid != 110) return SendClientMessage(playerid,COLOR_MSG, "[!] Invalid Gang Skins.");
AccountInfo[playerid][GSkin] = skinid;
SetPlayerSkin(playerid,skinid);
SendClientMessage(playerid,COLOR_WHITE,"Welcome to the Vagos Gang.");
AccountInfo[playerid][MyJob] = 7;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Cant do that here.");
}
return 1;
}
even if i type in the right gang skin, it says wrong skin. wtF?
Re: command will not get id correctly -
XPlatform - 05.05.2009
try:
Код:
if (skinid != 108 && skinid != 109 && skinid != 110)
instead of
Код:
if (skinid != 108 || skinid != 109 || skinid != 110)