06.06.2015, 17:12
Sooo, after searching in every single thread that talked about this, I wasn't able to fix my problem. I'm trying to convert my single-car personal vehicle system to a multi-car one however it just does not work.
Error codes:
Here's the enum:
And here's the faulty code (line 3922):
Also, MAX_VEHICLES_PER_PLAYER is defined to 20, if it helps at all.
Thanks
Error codes:
Код:
D:\Scripting\SAMP\Stunt\gamemodes\Stunt.pwn(3922) : error 028: invalid subscript (not an array or too many subscripts): "CarID" D:\Scripting\SAMP\Stunt\gamemodes\Stunt.pwn(3922) : warning 215: expression has no effect D:\Scripting\SAMP\Stunt\gamemodes\Stunt.pwn(3922) : error 001: expected token: ";", but found "]" D:\Scripting\SAMP\Stunt\gamemodes\Stunt.pwn(3922) : error 029: invalid expression, assumed zero D:\Scripting\SAMP\Stunt\gamemodes\Stunt.pwn(3922) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
enum playerData
{
ID,
Password[160],
IP,
Admin,
Score,
Money,
Coins,
Banned,
MuteSeconds,
Primarydrconpass[160],
Secondarydrconpass[160],
VIP,
Hours,
Minutes,
Kills,
Deaths,
BanExp,
BanM,
BanY,
BanHour,
BanMin,
VipExp,
VipM,
VipY,
VipHour,
VipMin,
pRespect,
nRespect,
BestKillingSpree,
DriftPoints,
StuntPoints,
RacePoints,
HouseID,
BusinessID,
NoteID,
ClanID,
C4,
Primaryorconpass[160],
Secondaryorconpass[160],
HouseExp,
HouseM,
HouseY,
HouseHour,
HouseMin,
bool:WeaponSlots[MAX_WEAPONS],
WeaponDepositID,
Email[70],
CarID[MAX_VEHICLES_PER_PLAYER],
};
new pInfo[MAX_PLAYERS][playerData];
pawn Код:
pInfo[plid][CarID[vslot]]=carid;
Thanks