18.11.2011, 14:12
I just resume my work after 1month, so I think i forgot almost 
Problem:

I got the function from fsdebug:
I don't have problems in aWeaponNames because they are only weapon names.
I don't know where is the problem :S
It should be:
"Weapon: MP5"
but it shows my name

Problem:

I got the function from fsdebug:
pawn Код:
GetWeaponModelIDFromName(wname[])
{
for(new i = 0; i < 48; i++) {
if (i == 19 || i == 20 || i == 21) continue;
if (strfind(aWeaponNames[i], wname, true) != -1) {
return i;
}
}
return -1;
}
pawn Код:
new wName = GetWeaponModelIDFromName(istr);
format(str8, sizeof(str8), "Weapon: %s", wName);
TextDrawSetString(Text:Textdraw8, str8);
It should be:
"Weapon: MP5"
but it shows my name
