21.03.2010, 13:49
Quote:
Originally Posted by HeGe
I found this in Useful Functions topic...
Код:
stock RemovePlayerWeapon(playerid, weaponid) { new plyWeapons[12] new plyAmmo[12] for(new slot = 0; slot != 12; slot++) { new wep, ammo GetPlayerWeaponData(playerid, slot, wep, ammo) if(wep != weaponid) { GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]) } } ResetPlayerWeapons(playerid) for(new slot = 0; slot != 12; slot++) { GivePlayerWeapon(playerid, plyWeapons[slot], plyAmmo[slot]) } } |
Quote:
warning 202: number of arguments does not match definition error 001: expected token: ";", but found "new" error 001: expected token: ";", but found "for" error 001: expected token: ";", but found "-identifier-" error 001: expected token: ";", but found "if" expected token: ";", but found "}" expected token: ";", but found "for" error 001: expected token: ";", but found "}" |