command will not get id correctly
#1

Код:
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?
Reply
#2

try:
Код:
if (skinid != 108 && skinid != 109 && skinid != 110)
instead of

Код:
if (skinid != 108 || skinid != 109 || skinid != 110)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)