SA-MP Forums Archive
PPC Housing LuxAdmin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PPC Housing LuxAdmin (/showthread.php?tid=518990)



PPC Housing LuxAdmin - L33TaS - 12.06.2014

Hello, trying to get ppc housing work with luxadmin, gives me those errors in this line
Quote:

return APlayerData[playerid][PlayerMoney];

Quote:

C:\Users\Vidme\Desktop\servassasda\filterscripts\L uxAdmin.pwn(199) : error 017: undefined symbol "APlayerData"
C:\Users\Vidme\Desktop\servassasda\filterscripts\L uxAdmin.pwn(199) : warning 215: expression has no effect
C:\Users\Vidme\Desktop\servassasda\filterscripts\L uxAdmin.pwn(199) : error 001: expected token: ";", but found "]"
C:\Users\Vidme\Desktop\servassasda\filterscripts\L uxAdmin.pwn(199) : error 029: invalid expression, assumed zero
C:\Users\Vidme\Desktop\servassasda\filterscripts\L uxAdmin.pwn(199) : fatal error 107: too many error messages on one line




Re: PPC Housing LuxAdmin - L33TaS - 12.06.2014

heelp


Re: PPC Housing LuxAdmin - Laure - 12.06.2014

What is APlayerData i mean what does it does?


Re: PPC Housing LuxAdmin - L33TaS - 12.06.2014

get player data scriptfiles/Accounts. i think
It it needed to be put in my admin filterscript, so if anyone bought a house it would take money from the scriptfiles/admin/accounts


Re: PPC Housing LuxAdmin - L33TaS - 12.06.2014

anyone?


Re: PPC Housing LuxAdmin - iOxide - 12.06.2014

You can find something similar to this in your script

Example:
pawn Код:
enum PlayerData
{
    Name[24],
    Password[50]
}
new pInfo[MAX_PLAYERS][PlayerData];
So you need to replace APlayerData with pInfo[playerid] blabla


Re: PPC Housing LuxAdmin - L33TaS - 12.06.2014

There's no pInfo in the script


Re: PPC Housing LuxAdmin - iOxide - 12.06.2014

I didn't say exactly the same as pInfo, it was an example. There should be something SIMILAR to it. There should be an enumerator to hold the player's data. Search for it and replace APlayerData with it.


Re: PPC Housing LuxAdmin - L33TaS - 12.06.2014

there's something like it, but i'm not sure
Quote:

new AccInfo[MAX_PLAYERS][PlayerData],
ServerInfo[ServerData],
AdmRank[128],
AdmDuty[128],
AccType[128],
ServerLockPass[128],
BadWords[100][100], BadWordsCount = 0,
Float:Pos[MAX_PLAYERS][4],
Chat[MAX_CHAT_LINES][128],
PingTimer,
GodTimer,
BlockedPartName[100][100], BlockedPartNameCount = 0,
Float:LPosX[MAX_PLAYERS],
Float:LPosY[MAX_PLAYERS],
Float:LPosZ[MAX_PLAYERS],
PingPos,
IsDisable[MAX_PLAYERS],
pColor;




Re: PPC Housing LuxAdmin - iOxide - 12.06.2014

Try replacing APlayerData with AccInfo and check if that works.