Hero creator
 
HomePortalFAQSearchMemberlistUsergroupsRegisterLog inLink to us

Share | 
 

 Somethings wrong

Go down 
AuthorMessage
Atspulgs


avatar

Number of posts : 76
Age : 28
Location : Ireland
Karma: : <font color="green"><b>Normal</b></font>
Warning :
0 / 1000 / 100

Rank permisson :
2 / 1002 / 100

<font></font> :
Steamid : Plz fill in steamid
Registration date : 2008-07-28

PostSubject: Somethings wrong   Sat Aug 23, 2008 5:16 pm

Ok i finally tested the new version.
Is the script supose to look like this?
Code:
//Created using micke1101's Hero creater
#include
#include
#define Herogen_version "1.0"
new gHeroName[]=""
new bool:gHasPower[SH_MAXSLOTS+1]
public plugin_init() {
register_plugin("SUPERHERO ", "1.0", "micke1101s shgenerator")
//Cvars copy and paste in to shconfig.cfg
register_cvar("_level", "")
shCreateHero(gHeroName, "", "", false, "_level")
//Init
register_srvcmd("_init", "_init")
shRegHeroInit(gHeroName, "_init")
register_cvar("micke1101", "Herogen_version", FCVAR_SERVER|FCVAR_SPONLY)
}
public _init() {
new temp[6]
read_argv(1,temp,5)
new id = str_to_num(temp)
read_argv(2,temp,5)
new hasPowers = str_to_num(temp)
if ( hasPowers ) {
}
if (!hasPowers && gHasPower[id] && is_user_alive(id)) {
}
gHasPower[id] = (hasPowers != 0)
}
Back to top Go down
View user profile http://jogyclan.ucoz.com
micke1101


avatar

Number of posts : 152
Age : 24
Location : Sverige/Vxj | Sweden/vaxjo
Karma: : <font color="green"><b>Very good</b></font>
Warning :
0 / 1000 / 100

Rank permisson :
10 / 10010 / 100

Next Permisson : You cant get any higher XD
<font></font> :
Steamid : STEAM_0:1:17811664
Registration date : 2008-07-23

PostSubject: Re: Somethings wrong   Sun Aug 24, 2008 1:36 am

Atspulgs wrote:
Ok i finally tested the new version.
Is the script supose to look like this?
Code:
//Created using micke1101's Hero creater
#include
#include
#define Herogen_version "1.0"
new gHeroName[]=""
new bool:gHasPower[SH_MAXSLOTS+1]
public plugin_init() {
register_plugin("SUPERHERO ", "1.0", "micke1101s shgenerator")
//Cvars copy and paste in to shconfig.cfg
register_cvar("_level", "")
shCreateHero(gHeroName, "", "", false, "_level")
//Init
register_srvcmd("_init", "_init")
shRegHeroInit(gHeroName, "_init")
register_cvar("micke1101", "Herogen_version", FCVAR_SERVER|FCVAR_SPONLY)
}
public _init() {
new temp[6]
read_argv(1,temp,5)
new id = str_to_num(temp)
read_argv(2,temp,5)
new hasPowers = str_to_num(temp)
if ( hasPowers ) {
}
if (!hasPowers && gHasPower[id] && is_user_alive(id)) {
}
gHasPower[id] = (hasPowers != 0)
}

hmm there should be some text between those

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
micke1101


avatar

Number of posts : 152
Age : 24
Location : Sverige/Vxj | Sweden/vaxjo
Karma: : <font color="green"><b>Very good</b></font>
Warning :
0 / 1000 / 100

Rank permisson :
10 / 10010 / 100

Next Permisson : You cant get any higher XD
<font></font> :
Steamid : STEAM_0:1:17811664
Registration date : 2008-07-23

PostSubject: Re: Somethings wrong   Sun Aug 24, 2008 5:56 am

Solved sometimes i hate simple solutions

How it was
Code:
                textBox1.Text = "";
                textBox10.Text = "";
                textBox11.Text = "";
                textBox12.Text = "";
                textBox2.Text = "";
                textBox3.Text = "";
                textBox4.Text = "";
                textBox5.Text = "";
                textBox6.Text = "";
                textBox7.Text = "";
                textBox8.Text = "";
                textBox9.Text = "";
                comboBox1.Text = "";
                comboBox2.Text = "";
                comboBox3.Text = "";
                comboBox4.Text = "";
                comboBox5.Text = "";
                saveFileDialog1.ShowDialog();

How it should have been
Code:
                saveFileDialog1.ShowDialog();
                textBox1.Text = "";
                textBox10.Text = "";
                textBox11.Text = "";
                textBox12.Text = "";
                textBox2.Text = "";
                textBox3.Text = "";
                textBox4.Text = "";
                textBox5.Text = "";
                textBox6.Text = "";
                textBox7.Text = "";
                textBox8.Text = "";
                textBox9.Text = "";
                comboBox1.Text = "";
                comboBox2.Text = "";
                comboBox3.Text = "";
                comboBox4.Text = "";
                comboBox5.Text = "";

So i will look up all possible errors i can find both for the 1.18 and the 1.2 then it will be updated

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
Atspulgs


avatar

Number of posts : 76
Age : 28
Location : Ireland
Karma: : <font color="green"><b>Normal</b></font>
Warning :
0 / 1000 / 100

Rank permisson :
2 / 1002 / 100

<font></font> :
Steamid : Plz fill in steamid
Registration date : 2008-07-28

PostSubject: Re: Somethings wrong   Sun Aug 24, 2008 7:13 pm

well yeah cuz if you dont you might end up with the same errors again Very Happy
Back to top Go down
View user profile http://jogyclan.ucoz.com
Sponsored content




PostSubject: Re: Somethings wrong   

Back to top Go down
 
Somethings wrong
Back to top 
Page 1 of 1
 Similar topics
-
» wrong number of arguments provided in nunit
» DF Troubleshooting - Something is wrong with the UB Funkey...
» Can I check the error message displayed or not in Selenium?
» Selenium Remote Control misbehaves
» getting glasses prescription right with daily migraine

Permissions in this forum:You cannot reply to topics in this forum
Hero creator :: Hero generator :: Report Bugs-
Jump to: