Jump to content


_250968

Member Since 02 Feb 2012
Offline Last Active Mar 11 2012 05:18 PM

Topics I've Started

round to intgers

08 March 2012 - 04:15 AM

i am not sure when you will need this code
but if you do you don't have to credit since i haven't come up a gmc name yet,
the code is
a=a-(a mod 1)
easy and short
a is the number you want to round

problem with font and draw_text

01 March 2012 - 02:20 AM

here is a screenshot
Posted Image
as you can see the upper case W doesn't look right.
the code i used was
draw_set_font(calibri)
draw_text(0,0,"WW")
please help

if = problem

26 February 2012 - 01:57 AM

how to i check if a value is equal to any of the given value but with out use "or"
for example
i want to check if speed is equal to 233 or 24 or 254
if speed= 233 or  speed =24 or speed=254
{speed=0}
but i am thinking
is there a way to do stuff like
if speed=233,24,254
{speed=0}
so please help me

please help me explain the 540 in thos code

23 February 2012 - 05:41 AM

return ((((argument0 - argument1) mod 360) + 540) mod 360) - 180;
i am having a hard time to understand what the +540 means
or the math behind it
so please help me out

what does || mean(solved)

23 February 2012 - 03:56 AM

i some times see people using & or |
in the game  but i don't know
what it mean
please help me