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, 10:14 PM   #21
x96664
Gangsta
 
x96664's Avatar
 
Join Date: Jun 2009
Posts: 603
Reputation: 7
Default Re: Making a Level and Experience System( With Paydays)

Nice tut!
x96664 is offline   Reply With Quote
Old 06/07/2017, 10: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 06/07/2017, 11:38 PM   #23
SteSte
Huge Clucker
 
SteSte's Avatar
 
Join Date: Aug 2015
Location: United States
Posts: 187
Reputation: 19
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;

__________________
Working On:
Superhuman - Roleplay
PM me if your interested in helping.
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 09:07 PM
Experience System srcka< Scripting Help 8 22/07/2012 08:10 AM
[HELP] Experience and level system anito Scripting Help 1 02/07/2012 02:07 PM
Need help with level making Dominiks Help Archive 5 08/07/2009 07:15 PM


All times are GMT. The time now is 09:21 AM.


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