C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : error 028: invalid subscript (not an array or too many subscripts): "CP" C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : warning 215: expression has no effect C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : error 001: expected token: ";", but found "]" C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : error 029: invalid expression, assumed zero C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1; PlayerInfo[playerid][pPot] = 0;
Show more lines above and under line 10217 and we'll be able to help.
|
PlayerInfo[playerid][pGangWarn] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0; PlayerInfo[playerid][pTriageTime] = 0; PlayerInfo[playerid][pCigar] = 0; PlayerInfo[playerid][pSprunk] = 0; PlayerInfo[playerid][pSpraycan] = 0; CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1; PlayerInfo[playerid][pPot] = 0; RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; PlayerInfo[playerid][pCrack] = 0; STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; PlayerInfo[playerid][pC4] = 0; PlayerInfo[playerid][pAdmin] = 0; RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; PlayerInfo[playerid][pHelper] = 0; TalkingLive[playerid] = INVALID_PLAYER_ID; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
As far as I have seen in pawn, you cannot do more than one ; (semi-colon) per line. Add them to separated lines or put "," between them and add only ; to the end.
Not 100% sure. |
PlayerInfo[playerid][pGangWarn] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0; PlayerInfo[playerid][pTriageTime] = 0; PlayerInfo[playerid][pCigar] = 0; PlayerInfo[playerid][pSprunk] = 0; PlayerInfo[playerid][pSpraycan] = 0; CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1; PlayerInfo[playerid][pPot] = 0; RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; PlayerInfo[playerid][pCrack] = 0; STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; PlayerInfo[playerid][pC4] = 0; PlayerInfo[playerid][pAdmin] = 0; RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; PlayerInfo[playerid][pHelper] = 0; TalkingLive[playerid] = INVALID_PLAYER_ID; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
A view in this way:
Код:
PlayerInfo[playerid][pGangWarn] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0; PlayerInfo[playerid][pTriageTime] = 0; PlayerInfo[playerid][pCigar] = 0; PlayerInfo[playerid][pSprunk] = 0; PlayerInfo[playerid][pSpraycan] = 0; CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1; PlayerInfo[playerid][pPot] = 0; RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; PlayerInfo[playerid][pCrack] = 0; STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; PlayerInfo[playerid][pC4] = 0; PlayerInfo[playerid][pAdmin] = 0; RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; PlayerInfo[playerid][pHelper] = 0; TalkingLive[playerid] = INVALID_PLAYER_ID; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0; |
C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : error 028: invalid subscript (not an array or too many subscripts): "CP" C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : warning 215: expression has no effect C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : error 001: expected token: ";", but found "]" C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : error 029: invalid expression, assumed zero C:\Users\Computer\Desktop\--\gamemodes\script.pwn(10217) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
The problem is here: CP[playerid] = 0;
Show me what is responsible for this function: CP |
new cpid[32]; enum Business { CP, Text3D:bLabel, Cost, Payout, bName[128], }
new cpid[40]; enum Business { CP, Text3D:bLabel, Cost, Payout, bName[128] }
new cpid[50]; enum Business { CP[20], Text3D:bLabel, Cost, Payout, bName[128] }
if (!CP[playerid]) CP[playerid] = 0;