I cant seem to be able to print my player stats variables to display on my HUD... anyone got any ideas?
BTW, where is there a 'db' in front of everything? Why db?
void hud(int PlayerHealth,int Score,float PlayerX, float PlayerZ)
{
//Health
dbSetTextFont( "verdana" );
dbSetTextSize(50);
dbText ( 0, 0, "Health = " PlayerHealth ) ;
//Ammo
dbSetTextFont( "verdana" );
dbSetTextSize(50);
dbText ( dbScreenWidth()-dbTextWidth("Score = " Score ), 0, "Score = " Score) ;
//Health
dbSetTextFont( "verdana" );
dbSetTextSize(50);
dbText ( 0, dbScreenHeight()- dbTextHeight ( PlayerX ), PlayerX ) ;
//Ammo
dbSetTextFont( "verdana" );
dbSetTextSize(50);
dbText ( dbScreenWidth()-dbTextWidth(PlayerZ), dbScreenHeight()- dbTextHeight ( PlayerZ ) , PlayerZ) ;
}