new -> static
Code:
set_hudmessage(255, 255, 255, 0.02, 0.92, 0, 6.0, 12.0, 0.01, 0.01, 23)
->
Code:
set_hudmessage(255, 255, 255, 0.02, 0.92, 0, 6.0, 1.0, 0.01, 0.01, 4)
Max channel is 4 (or -1) not 23.
Code:
for(new i;i < pnum;i++ )
->
Code:
for(new i = 0;i < pnum;i++ )
PHP Code:
public plugin_init()
{
//code..
set_task( 1.0, "showallhud", 12321, _, _, "b" );
}
public showallhud() {
set_hudmessage(255, 255, 255, 0.02, 0.92, 0, 6.0, 1.0, 0.01, 0.01, 4)
static players[32], pnum, tempid;
get_players( players, pnum );
for ( new i = 0; i < pnum; i++ ) {
tempid = players[i];
ShowSyncHudMsg(tempid, hud, "Suspect: #%d -- HP: %d^nXP: %i", tempid, get_user_health(tempid), PlayerXP[tempid])
}
}