how to get this to work
#1

pawn Код:
if(classid == 1,2,3,4,5,6,7,8)
    {
        PlayerJobs[playerid][Civillian] = 1;
        PlayerJobs[playerid][HasAJob] = 0;
        SendClientMessage(playerid,LIMEGREEN,"You are now playing as a civillian!");
    }
obviously that doesnt work, i tried if(classid <= but taht doesnt work, anyway to get this to work? without adding hundreds of them
Reply
#2

pawn Код:
switch(classid)
{
   case 1..8:
   {
      PlayerJobs[playerid][Civillian] = 1;
      PlayerJobs[playerid][HasAJob] = 0;
      SendClientMessage(playerid, LIMEGREEN, "You are now playing as a civillian!");
   }
}
Reply
#3

<= or you mean > 0 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)