Quote:
Originally Posted by GsiX
Thank FaTony, this gonna take log way. Is the file is automatically created or i need to manually create 1?
Yay.. she say undefined symbol path on the OpenFile things.
PHP Code:
public OnConfigsExecuted() { if ( !FileExists( "addons/sourcemod/data/l4d2_luffy_rpg.txt" )) { decl String:path[256]; BuildPath( Path_SM, path, sizeof( path ), "data/l4d2_luffy_rpg.txt"); ServerCommand( "clear" ); PrintToServer( "[LUFFY]: File path created: addons/sourcemod/data/l4d2_luffy.txt" ); } new Handle:p_Handle = OpenFile( path, "w+" ); }
EDIT: Sorry my bad.. its inside the jailll.. that y..
EDIT EDIT: okay 1st step done.. how can i write down player data in there? say i wan to save number or anyting and save it forever. I m looking at exvel save score plugin but i dont understand it. I don wan copy paste, i wan to understand and produce mine.
|
If you're writing player data, consider using the SourceMod
Client Preferences API instead. Just make sure you set the CookieAccess appropriately... specifically to CookieAccess_Protected or CookieAccess_Private if you don't want users to be able to change it.
Hmm, I just noticed how terribad the wiki page is for ClientPrefs. Rewrite time for it, methinks!
__________________