31.12.2010, 15:24
You mean something like this? Untested.
pawn Код:
new WeaponData[13][2], string[128];
for (new i = 0; i < 13; i++)
{
WeaponData[i][0] = 255;
GetPlayerWeaponData(playerid, i, WeaponData[i][0], WeaponData[i][1]);
if(WeaponData[i][0] != 255)
{
format(string, sizeof(string), "Found a weapon in slot %d", i);
SendClientMessage(playerid, 0xFFFFFFFF, string);
break;
}
}