05.06.2014, 09:35
Quote:
That's not it at all! You can't use a string to index an array. The problem is probably with the declaration of "GC", which you didn't post.
|
pawn Код:
enum geos
{
easy1,
easy2,
easy3,
med1,
med2,
med3,
hard1,
hard2,
hard3,
exp1
}
new GC[MAX_PLAYERS][geos];
stock GetGeoString(playerid, variable[])
{
new str[12];
if(GC[playerid][variable] == 1){str = "FOUND!";}
else {str = "Not Found";}
return str;
}
Код:
C:\Users\Aerotactics\Desktop\SAMP testing\filterscripts\geo.pwn(58) : error 035: argument type mismatch (argument 2) C:\Users\Aerotactics\Desktop\SAMP testing\filterscripts\geo.pwn(66) : error 033: array must be indexed (variable "variable")