Raised This Month: $ Target: $400
 0% 

Error save system


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ah3llboy
New Member
Join Date: Jan 2014
Old 11-27-2014 , 02:52   Error save system
Reply With Quote #1

this is the rror
Quote:
L 11/26/2014 - 23:50:57: [AMXX] Run time error 10: native error (native "write_file")
L 11/26/2014 - 23:50:57: [AMXX] [0] hnsxp.sma::SavePoints (line 3592)
L 11/26/2014 - 23:50:57: [AMXX] [1] hnsxp.sma::ham_SpawnPlayerPost (line 3051)
L 11/26/2014 - 23:51:04: Couldn't write file "cstrike\"
L 11/26/2014 - 23:51:04: [AMXX] Displaying debug trace (plugin "hnsxp.amxx")
L 11/26/2014 - 23:51:04: [AMXX] Run time error 10: native error (native "write_file")
L 11/26/2014 - 23:51:04: [AMXX] [0] hnsxp.sma::SavePoints (line 3592)
L 11/26/2014 - 23:51:04: [AMXX] [1] hnsxp.sma::ev_DeathMsg (line 3694)
L 11/26/2014 - 23:51:04: Couldn't write file "cstrike\"
L 11/26/2014 - 23:51:04: [AMXX] Displaying debug trace (plugin "hnsxp.amxx")
L 11/26/2014 - 23:51:04: [AMXX] Run time error 10: native error (native "write_file")
L 11/26/2014 - 23:51:04: [AMXX] [0] hnsxp.sma::SavePoints (line 3592)
Line:
Quote:
public SavePoints( id ) {

new Name[ 32 ];
get_user_name( id, Name, 31 );

static Data[ 1024 ];
formatex( Data, sizeof( Data ) - 1, "^"%i^" ^"%i^" ^"%i^" ^"%i^" ^"%i^" ^"%i^" ^"%i^" ^"%i^"", User [ id ] [ Level ], User [ id ] [ Xp ], g_iUserPoints[id] , gDmgLevel[id], gHealthLevel[id], gSpeedLevel[id], gArmorLevel[id], gKnifeLevel[id] );

new Save[ 512 ];
format( Save, 511, "^"%s^" %s", Name, Data );

new Line[ 128 ], Linie, IsPlayer = false, Arg1[ 32 ];

new FileOpen = fopen( File, "rt" );

while( !feof( FileOpen ) ) {

fgets( FileOpen, Line, 127 );
trim( Line );

parse( Line, Arg1, 31 );

if( equali( Arg1, Name ) ) {

write_file( File, Save, Linie );
IsPlayer = true;
break;
}

Linie++;
}

fclose( FileOpen );

if( !IsPlayer ) {

write_file( File, Save, -1 );
}
}
ah3llboy is offline
 



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 17:31.


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