little fix

This commit is contained in:
Borja Ferrer 2006-05-17 13:44:58 +00:00
parent 6cb6ef9c84
commit d01d6b06fa

View File

@ -639,13 +639,13 @@ static cell AMX_NATIVE_CALL get_weaponid(AMX *amx, cell *params)
int ilen;
const char *name = get_amxstring(amx, params[1], 0, ilen);
for (int i = 0; i < MAX_WEAPONS; i++)
for (int i = 1; i < MAX_WEAPONS; i++)
{
if (!strcmp(g_weaponsData[i].fullName.c_str(), name))
return g_weaponsData[i].iId;
}
return -1;
return 0;
}
static cell AMX_NATIVE_CALL get_user_weapons(AMX *amx, cell *params) /* 3 param */