SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 31/10/2012, 09:14 PM   #1
seanny
High-roller
 
seanny's Avatar
 
Join Date: Oct 2010
Location: Derry City, Northern Ireland
Posts: 1,425
Reputation: 41
Default Server Crashing.

I think this function is crashing my server.

pawn Code:
function LoadUser_data(playerid,name[],value[])
{
    #if defined DEBUG
    printf("[Debug] LoadUser_data(%d,%s,%s);", playerid,name,value);
    #endif
    INI_String("Password",PlayerInfo[playerid][pPass], 129);
    //INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("Cash",PlayerInfo[playerid][pLevel]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("DonationMod",PlayerInfo[playerid][pDonationMod]);
    INI_Int("Sex",PlayerInfo[playerid][pSex]);
    INI_Int("Age",PlayerInfo[playerid][pAge]);
    INI_Float("PosX",PlayerInfo[playerid][pPosX]);
    INI_Float("PosY",PlayerInfo[playerid][pPosY]);
    INI_Float("PosZ",PlayerInfo[playerid][pPosZ]);
    INI_Int("Spawn",PlayerInfo[playerid][pSpawn]);
    INI_Int("Skin",PlayerInfo[playerid][pSkin]);
    INI_Int("Helper",PlayerInfo[playerid][pHelper]);
    INI_Int("Donator",PlayerInfo[playerid][pDonator]);
    INI_Int("Accent",PlayerInfo[playerid][pAccent]);
    INI_Int("BusinessKey",PlayerInfo[playerid][pBusinessKey]);
    INI_Int("HouseKey",PlayerInfo[playerid][pHouseKey]);
    INI_Int("Jailed",PlayerInfo[playerid][pJailed]);
    INI_Int("JailTime",PlayerInfo[playerid][pJailTime]);
    INI_Int("Steel",PlayerInfo[playerid][pSteel]);
    INI_Int("Job",PlayerInfo[playerid][pJob]);
    INI_Int("JobHours",PlayerInfo[playerid][pJobHours]);
    INI_Int("Member",PlayerInfo[playerid][pMember]);
    INI_Int("Rank",PlayerInfo[playerid][pRank]);
    INI_Int("Banned",PlayerInfo[playerid][pBanned]);
    INI_Int("Warns",PlayerInfo[playerid][pWarns]);
    INI_Int("Hospitalized",PlayerInfo[playerid][pHospitalized]);
    INI_Int("PhoneNumber",PlayerInfo[playerid][pPhoneNumber]);
    INI_Int("FlyingLicense",PlayerInfo[playerid][pFlyingLicense]);
    INI_Int("FactionMod",PlayerInfo[playerid][pFactionMod]);
    return 1;
}
__________________
Developer @ Outlaw Games Studio
https://discord.gg/BR2FCTm

I am no longer part of the SA-MP scene.
seanny is offline   Reply With Quote
Old 31/10/2012, 09:28 PM   #2
Eric
Big Clucker
 
Eric's Avatar
 
Join Date: Jul 2010
Location: Ontario, Canada
Posts: 159
Reputation: 16
Default Re: Server Crashing.

Quote:
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Cash",PlayerInfo[playerid][pLevel]);
Not sure if that's causing it, but you might want to fix that.
Eric is offline   Reply With Quote
Old 02/11/2012, 09:55 AM   #3
seanny
High-roller
 
seanny's Avatar
 
Join Date: Oct 2010
Location: Derry City, Northern Ireland
Posts: 1,425
Reputation: 41
Default Re: Server Crashing.

Oh shite! I'll test that now, thanks for your help!
__________________
Developer @ Outlaw Games Studio
https://discord.gg/BR2FCTm

I am no longer part of the SA-MP scene.
seanny 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
Server crashing!!! Crazyboobs Server Support 9 01/06/2012 02:00 PM
Crashing server?!? External-Life Server Support 4 27/03/2012 08:01 AM
Server crashing... 2KY Scripting Help 4 31/01/2012 03:06 AM
Server crashing cloudysky Server Support 0 28/06/2011 08:08 PM
/pm = crashing server Seven. Help Archive 2 25/09/2010 09:39 AM


All times are GMT. The time now is 03:52 AM.


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