Raised This Month: $ Target: $400
 0% 

Using BuildPath()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 10-18-2012 , 10:18   Re: Using BuildPath()
Reply With Quote #3

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 i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 10-18-2012 at 10:35.
GsiX 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