SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 19/10/2010, 04:25 AM   #1
andruz99
Big Clucker
 
andruz99's Avatar
 
Join Date: Oct 2009
Posts: 139
Reputation: 5
Question Need assistant with my login and register script

okey i have created same kind of a system like LARP

PlayerInfo[playerid][pBanana] = 1; etc....

but i have a problem with this system

when i create a new account and register and then login then it gives me the same stats what i had in my other account
could anyone tell me what the problem could be?
andruz99 is offline  
Old 19/10/2010, 05:11 AM   #2
Crayon
Big Clucker
 
Join Date: Aug 2009
Posts: 70
Reputation: 0
Default Re: Need assistant with my login and register script

Can you explain the problem a bit more? I don't understand what you mean by when you register it gives you the same stats as your "old account".

Also please post your code. It's most likely not reading correctly from the file.
Crayon is offline  
Old 19/10/2010, 08:16 AM   #3
andruz99
Big Clucker
 
andruz99's Avatar
 
Join Date: Oct 2009
Posts: 139
Reputation: 5
Default Re: Need assistant with my login and register script

Solved it had to add under Public OnPlayerConnect(playerid)

PlayerInfo[playerid][pDrugs] = 0;
PlayerInfo[playerid][pFood] = 0;
PlayerInfo[playerid][pMoney] = 0;

etc...
andruz99 is offline  
 

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
When player login to the server[/register & /login] Taz86 Help Archive 5 20/06/2010 09:09 AM
[Linux] Assistant to run SAMP with Wine 1.1.2+ [BoS]Kirill General 1 08/04/2010 09:28 PM
register & login in box? Ben147 Help Archive 5 21/03/2010 06:29 PM
Please Help me with my Login/Register Vinni Help Archive 1 24/07/2009 12:24 AM


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


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