SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 18/09/2016, 07:01 PM   #1
aragon3
Little Clucker
 
Join Date: Jul 2013
Posts: 1
Reputation: 0
Default error 032 problem

E:\servere\server\gamemodes\gf.pwn(7553) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7554) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7555) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7556) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7557) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(755 : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7559) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7560) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7561) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7562) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7563) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7564) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7565) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7566) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7567) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(756 : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7569) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7570) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7571) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7572) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7573) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7574) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7575) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7576) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(7577) : error 032: array index out of bounds (variable "PlayerInfo")
E:\servere\server\gamemodes\gf.pwn(757 : error 032: array index out of bounds (variable "PlayerInfo")

i got these errors when i try to compile the gamemode. I don't know what to do.

Lines:

format(var, 32, "Key=%s\n", PlayerInfo[MAX_PLAYERS][pKey]);fwrite(hFile, var);
PlayerInfo[MAX_PLAYERS][pCash] = GetPlayerMoney(playerid);
format(var, 32, "Level=%d\n",PlayerInfo[MAX_PLAYERS][pLevel]);fwrite(hFile, var);
format(var, 32, "AdminLevel=%d\n",PlayerInfo[MAX_PLAYERS][pAdmin]);fwrite(hFile, var);
format(var, 32, "DonateRank=%d\n",PlayerInfo[MAX_PLAYERS][pDonateRank]);fwrite(hFile, var);
format(var, 32, "UpgradePoints=%d\n",PlayerInfo[MAX_PLAYERS][gPupgrade]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[MAX_PLAYERS][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[MAX_PLAYERS][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",PlayerInfo[MAX_PLAYERS][pSex]);fwrite(hFile, var);
format(var, 32, "Age=%d\n",PlayerInfo[MAX_PLAYERS][pAge]);fwrite(hFile, var);
format(var, 32, "Origin=%d\n",PlayerInfo[MAX_PLAYERS][pOrigin]);fwrite(hFile, var);
format(var, 32, "CK=%d\n",PlayerInfo[MAX_PLAYERS][pCK]);fwrite(hFile, var);
format(var, 32, "Muted=%d\n",PlayerInfo[MAX_PLAYERS][pMuted]);fwrite(hFile, var);
format(var, 32, "Respect=%d\n",PlayerInfo[MAX_PLAYERS][pExp]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[MAX_PLAYERS][pCash]);fwrite(hFile, var);
format(var, 32, "Bank=%d\n",PlayerInfo[MAX_PLAYERS][pAccount]);fwrite(hFile, var);
format(var, 32, "Crimes=%d\n",PlayerInfo[MAX_PLAYERS][pCrimes]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[MAX_PLAYERS][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[MAX_PLAYERS][pDeaths]);fwrite(hFile, var);
format(var, 32, "Arrested=%d\n",PlayerInfo[MAX_PLAYERS][pArrested]);fwrite(hFile, var);
format(var, 32, "WantedDeaths=%d\n",PlayerInfo[MAX_PLAYERS][pWantedDeaths]);fwrite(hFile, var);
format(var, 32, "Phonebook=%d\n",PlayerInfo[MAX_PLAYERS][pPhoneBook]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",PlayerInfo[MAX_PLAYERS][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Fishes=%d\n",PlayerInfo[MAX_PLAYERS][pFishes]);fwrite(hFile, var);
format(var, 32, "BiggestFish=%d\n",PlayerInfo[MAX_PLAYERS][pBiggestFish]);fwrite(hFile, var);
aragon3 is offline   Reply With Quote
Old 18/09/2016, 07:08 PM   #2
Shinja
Gangsta
 
Shinja's Avatar
 
Join Date: Jan 2016
Posts: 972
Reputation: 107
Default Re: error 032 problem

Change MAX_PLAYERS to playerid
Shinja 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
Run time error 19: "File or function is not found" error problem SaVage96 Server Support 4 30/05/2015 12:30 PM
PROBLEM:Pawn Compile problem, ERROR MoroccanEyes Scripting Help 15 13/03/2015 11:23 AM
Error problem mufid1995 Scripting Help 10 23/05/2013 08:39 PM
Problem with: error 008 and error 029 The God Scripting Help 2 13/12/2012 11:30 AM
Little problem [error 001] Flashy Help Archive 3 02/06/2010 12:40 PM


All times are GMT. The time now is 06:46 AM.


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