24.02.2014, 19:01
Hi,
I want create a function.... look:
indeterminate array size in "sizeof" expression (symbol "")
Idea ?
Thanks
I want create a function.... look:
pawn Код:
// CMD
new array[1] = {FACT_TYPE_POLICE};
if(!in_array(array, pInfo[playerid][pP__faction])) return SendClientDialog(playerid, DEFAULT_TIME, "~r~Vous n'avez pas accиs а cette commande.");
// FUNCTION
stock in_array(array[], value)
{
for(new i; i < sizeof(array); i++)
{
if(array[i] == value) return 1;
}
return 0;
}
Idea ?
Thanks