PHP Code:
public tank_reborn(iTaskID)
{
if (get_playersnum() < 1)
return;
g_SpawnTanks &= ~( 1 << ( ( iTaskID - REBORN_TANK ) & 31 ) );
new cName[32], randompl, iPlayers[32], iNum;
get_players(iPlayers, iNum, "ae", "TERRORIST");
randompl = iPlayers[random(iNum)];
new Float: tank_health, Float:tank_gravity
tank_health = get_pcvar_float(hp_tank)
tank_gravity = get_pcvar_float(gr_tank) / 800
iClass[randompl] = 9;
copy(player_model[randompl], charsmax( player_model[] ), tank_model)
set_pev(randompl, pev_health, tank_health)
set_pev(randompl, pev_gravity, tank_gravity)
Error sad on this line it's wrong where i wrote...
Code:
L 04/27/2011 - 16:21:45: [AMXX] [0] uhhh.sma::global_tank (line 814)
L 04/27/2011 - 16:28:03: [AMXX] Displaying debug trace (plugin "uhhh.amxx")
L 04/27/2011 - 16:28:03: [AMXX] Run time error 4: index out of bounds