SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 08/11/2012, 11:14 PM   #21
x96664
Gangsta
 
x96664's Avatar
 
Join Date: Jun 2009
Posts: 599
Reputation: 7
Default Re: Making a Level and Experience System( With Paydays)

Nice tut!
x96664 is offline   Reply With Quote
Old 06/07/2017, 11:55 PM   #22
Slavica
Little Clucker
 
Join Date: Feb 2017
Posts: 34
Reputation: 1
Default Re: Making a Level and Experience System( With Paydays)

How am I suppose to load data on OnPlayerConnect?
Slavica is offline   Reply With Quote
Old 07/07/2017, 12:38 AM   #23
SteSte
Big Clucker
 
SteSte's Avatar
 
Join Date: Aug 2015
Location: United States
Posts: 190
Reputation: 20
Default Re: Making a Level and Experience System( With Paydays)

Quote:
Originally Posted by Slavica View Post
How am I suppose to load data on OnPlayerConnect?
*BUMP


Add this on top of your script, after the defines if you like.
And list the data you want to load
PHP Code:
forward LoadPlayerData(playeridname[], value[]);
public 
LoadPlayerData(playeridname[], value[])
{
    
INI_Int("Level"PlayerInfo[playerid][Level]); //Example, if you want to load the player's level
    
return 1;

PHP Code:
OnPlayerConnect(playerid)
{
    if(
fexist(UserPath(playerid)))
   {
       
INI_ParseFile(UserPath(playerid), "LoadPlayerData", .bExtra true, .extra playerid); //Add this onplayerconnect        
   
}
    return 
1;

__________________
Interested in scripting creative and unique scripts? PM me here.
SKYPE: Heroleo911003
Discord: Ste-Ste#7377
I prefer Discord at the moment, skype works to.
I'm currently working on a survival script where players have real scripted powers.
SteSte is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Experience system + Simple Account System KingHual Filterscripts 72 27/06/2015 10:07 PM
Experience System srcka< Scripting Help 8 22/07/2012 09:10 AM
[HELP] Experience and level system anito Scripting Help 1 02/07/2012 03:07 PM
Need help with level making Dominiks Help Archive 5 08/07/2009 08:15 PM


All times are GMT. The time now is 07:58 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.