[HELP] Multiple Classids
#1

Hello, i am currently working on a CnR / Gangwar Server and i was wondering if its anyway to do multiple classids instead of one and one.

Код:
public SetPlayerTeamFromClass(playerid, classid)
{
	if (classid == 0) <------ make this like classid == 0,1,2,3,4  or something?
	{
		gTeam[playerid] = TEAM_GROVE;
	}
Any help will be Appreciated

+Rep for helping me
Reply
#2

You mean something like this?

pawn Код:
//  classid == 0 OR classid == 1 OR classid == 2 OR ...
if (classid == 0 || classid == 1 || classid == 2 || ...)
    {
        gTeam[playerid] = TEAM_GROVE;
    }
Reply
#3

yeah i think. if its like: if class = 1 or 2 or 3 or 4 then color = green
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)