12.09.2010, 06:24
Hey, I just made a function to return a gang id from a name:
except I get the error:
and when i use the function I get:
Can somebody help me out?
pawn Код:
stock GetGangID(name[])
{
for(new i; i < MAX_GANGS; i++)
{
if( name != GangInfo[i][GangName]) continue;
}
return name;
}
Код:
error 033: array must be indexed (variable "name")
Код:
error 033: array must be indexed (variable "GetGangID")