[Site Home] [Forum Home] [Articles] [File DB] [News Archives]

Programming -> how do you call a procedure with string and int


(View original topic)


Shmack - Jun-20-2005 server time
im not sure what im gonna call it yet and yes this will be a game ^^ hmm and seggestions for a name?

MikeDB - Jun-20-2005 server time
what are you going to call your game?? or is this going to be a game?

Shmack - Jun-20-2005 server time
Bahh i found out the problem but none of you helped me so tongue.gif


Shmack - Jun-19-2005 server time
Come on some one help me out here iv been stuck on this for like 10 hours now i got a turing book from class but it doesnt show me how GAHH HELP!!!!

Shmack - Jun-19-2005 server time
no one knows?????

Shmack - Jun-19-2005 server time
this is my procdure

CODE

procedure myStats (myCharacter : PlayerStats, charName : string, playerHP :
   int)
   cls
   %draw stats box
   drawline (320, 260, 320, 100, 1)
   drawline (410, 260, 410, 100, 1)
   drawline (320, 100, 410, 100, 1)
   drawline (420, 260, 320, 260, 1)
   drawline (410, 230, 320, 230, 1)
   drawline (410, 195, 320, 195, 1)
   drawline (410, 160, 320, 160, 1)
   drawline (410, 130, 320, 130, 1)
   drawline (370, 230, 370, 100, 1)
   %Display stats in box
   locate (5, 42)
   put myCharacter.race ..
   locate (8, 48)
   put myCharacter.strength ..
   locate (11, 48)
   put myCharacter.agility ..
   locate (14, 48)
   put myCharacter.vitality ..
   locate (16, 48)
   put myCharacter.wizardry ..
   locate (8, 43)
   put "Str"
   locate (11, 43)
   put "Agi"
   locate (14, 43)
   put "Vit"
   locate (16, 43)
   put "Wiz"
   %stats bar
   drawline (10, 280, 400, 280, 1)
   drawline (10, 280, 10, 500, 1)
   drawline (400, 280, 400, 300, 1)
   locate (1, 3)
   put charName, "  ", myCharacter.race, " HP:", myCharacter.vitality * 1.5,
       " SP:", myCharacter.wizardry * 2.2, " EXP:", "100", " z", "100000" ..
end myStats


this is how im trying to call it but it wont work ><

CODE
myStats (myCharacter, charName , playerHP)

(Showing 50 last posts, newest on top)