16.04.2013, 00:01
You'd generally use an array for this.
Not tested, and I wasn't sure what to call the function/array etc. because I have no idea what the hell it is.
Simply replace your code with this:
pawn Код:
stock IsChoiceVehMid(playerid)
{
stock const gChoiceVehMid[] = {
435,
441,
449,
450,
464,
465,
501,
537,
538,
539,
564,
569,
570,
584,
590,
591,
594,
606,
607,
608,
610,
611
};
for(new i=0; i<sizeof(gChoiceVehMid); i++)
{
if(gChoiceVehMid[i] == choicevehiclemid[playerid]) return 1;
}
return 0;
}
Simply replace your code with this:
pawn Код:
if(IsChoiceVehMid(playerid))