Nah, you don't need to copy it into String[] that was just an e.g , in your case will be something like...
Code:
public bool:CheckAchievement(id,achievement)
{
new Num, Array[ACHVS_NUM][ACHVS_NUM];
new iAchievement[11]
num_to_str(achievement, iAchievement, 10);
while(containi(g_Achvs[id],".") != -1)
{
strtok(g_Achvs[id], Array[Num], sizeof(Array[]) - 1, g_Achvs[id], sizeof(g_Achvs[]) - 1, '.');
Num++;
}
for(new i ; i < sizeof(Array) ; i++)
{
if(!Array[i][0])
continue;
if(containi(Array[i], iAchievement) != -1)
return true;
}
return false;
}
EDIT:I hope that g_Achvs is a string... "g_Achvs[33][length]" :p
__________________