Raised This Month: $ Target: $400
 0% 

Very strange Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wgwgkg
Member
Join Date: May 2011
Old 08-05-2012 , 04:07   Very strange Error
Reply With Quote #1

PHP Code:
new data[32][32]
public 
Loadgun(id)
{
  new 
name[35], vaultkey[64], vaultdata[256]
  
get_user_name(id,name,34)
  
format(vaultkey63"%s"name)
  
format(vaultdata255"%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i",
  
g_gun[id][0],g_gun[id][1],g_gun[id][2],g_gun[id][3],g_gun[id][4],g_gun[id][5], g_gun[id][6],g_gun[id][7],g_gun[id][8],g_gun[id][9],g_gun[id][10],g_gun[id][11],g_gun[id][12],g_gun[id][13], g_gun[id][14], g_gun[id][15], g_gun[id][16], g_gun[id][17], g_gun[id][18], g_gun[id][19],  g_gun[id][20], g_gun[id][21], g_gun[id][22], g_gun[id][23], g_gun[id][24], g_gun[id][25])
  
nvault_get(g_vaultvaultkeyvaultdata255)
  
replace_all(vaultdata255"#"" "//Line 1772  
parse(vaultdatadata[0], 31data[1], 31data[2], 31data[3], 31data[4], 31data[5], 31data[6], 31 data[7], 31data[8], 31data[9], 31data[10], 31data[11], 31data[12], 31data[13], 31data[14], 31data[15], 31data[16], 31data[17], 31data[18], 31data[19], 31data[20], 31data[21], 31data[22], 31data[23], 31data[24], 31data[25], 31)
  for (new 
026i++)
  {
   
g_gun[id][i] = str_to_num(data[i])
  }
  return;
 

When I compile it, it got an error called input line too long (after substitutions) in Line 1772. How can i fix it?

Last edited by wgwgkg; 08-05-2012 at 04:07. Reason: Make mistake
wgwgkg is offline
Old 08-05-2012, 04:36
MokeN
This message has been deleted by MokeN. Reason: Read Wrong..
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 08-05-2012 , 04:37   Re: Very strange Error
Reply With Quote #2

parse line
like:
Code:
parse(vaultdata, data[0], 31, 
 data[1], 31, data[2], 31, data[3],
 31, data[4], 
 31, data[5], 31, data[6], 31 , data[7] ...
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-05-2012 , 04:52   Re: Very strange Error
Reply With Quote #3

Why are you formating vaultdata when you are reading data into it immediately after? It makes no sense.
PHP Code:
new data[32][32]
public 
Loadgun(id)
{
    new 
vaultkey[33], vaultdata[256]
    
get_user_name(id,vaultkey,charsmaxvaultkey ) )

    
nvault_get(g_vaultvaultkeyvaultdatacharsmax(vaultdata))
    
    
replace_all(vaultdata255"#"" "//Line 1772  
    
parse(vaultdatadata[0], 31data[1], 31data[2], 31data[3], 31data[4], 31data[5], 31data[6], 31 data[7], 31data[8], 31data[9], 31data[10], 31data[11], 31data[12], 31data[13], 31data[14], 31data[15], 31data[16], 31data[17], 31data[18], 31data[19], 31data[20], 31data[21], 31data[22], 31data[23], 31data[24], 31data[25], 31)
    
    for (new 
026i++)
        
g_gun[id][i] = str_to_num(data[i])

__________________

Last edited by Bugsy; 08-05-2012 at 04:53.
Bugsy is offline
wgwgkg
Member
Join Date: May 2011
Old 08-05-2012 , 05:04   Re: Very strange Error
Reply With Quote #4

BTW, how to fix this problem?
wgwgkg is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-05-2012 , 05:53   Re: Very strange Error
Reply With Quote #5

Quote:
Originally Posted by wgwgkg View Post
BTW, how to fix this problem?
As said in #2.
But as Busy pointed, you need to fix code errors first.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
wgwgkg
Member
Join Date: May 2011
Old 08-05-2012 , 06:56   Re: Very strange Error
Reply With Quote #6

Um... Can someone give me a correctly nvault save example to me?
wgwgkg is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-05-2012 , 11:14   Re: Very strange Error
Reply With Quote #7

Look at my above post, chief.
__________________
Bugsy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode