Oh right. Was thinking CS for some reason.
Um in set_hudmessage the 4,5 and 8th parameters all need to be floats and you've got them as integers.
You also have to create a for loop and loop through all the players (think theres info in the help doc on how to do this) and then change the 'players' in your show_hudmessage to be players[counter]
Oh wait and the first error is because get_players needs 2 variables. player index array and num of players integer
PHP Code:
public display_hud(id) {
new players[32],num;
get_players(players,num)
set_hudmessage(255,0,0,0.0,0.0,0,99.9,255.0,0.0,0.0,-1)
for (new counter=0; counter<num; counter++)
{
switch ( read_data(1) ) {
case 0 .. 25 :
show_hudmessage(players[counter],"Caution!")
default :
show_hudmessage(players[counter], "Overcharged")
}
}
}
Or maybe this. U already have the id, so you don't need to get_players at all? Not sure, don't know the messages for Sven
PHP Code:
public display_hud(id) {
set_hudmessage(255,0,0,0.0,0.0,0,99.9,255.0,0.0,0.0,-1)
switch ( read_data(1) ) {
case 0 .. 25 :
show_hudmessage(id,"Caution!")
default :
show_hudmessage(id, "Overcharged")
}
}