Raised This Month: $ Target: $400
 0% 

Using BuildPath()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-18-2012 , 10:37   Re: Using BuildPath()
Reply With Quote #4

Quote:
Originally Posted by GsiX View Post
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]; 
        
BuildPathPath_SMpathsizeofpath ), "data/l4d2_luffy_rpg.txt"); 
        
ServerCommand"clear" );
        
PrintToServer"[LUFFY]: File path created: addons/sourcemod/data/l4d2_luffy.txt" ); 
    }
    new 
Handle:p_Handle OpenFilepath"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!
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 11:42.


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