12.11.2018, 20:51
These are just examples.
Option 1:
Option 2:
Option 1:
Код:
new ObjectFood[] = { 10, 2000, 400, 200 };
IsFoodObjectPlayer(playerid)
{
for(new i = 0; i < 4; i++)
{
if(VarPlayerFood == ObjectFood[i]) return 1;
}
return 0;
}
Код:
IsFoodObjectPlayer(playerid, VarPlayerFood)
{
switch(VarPlayerFood)
{
case 10, 2000, 400, 200: { return 1; }
}
return 0;
}

