E:\Shock Roleplay 0.3z\gamemodes\BGRP.pwn(17061) : error 028: invalid subscript (not an array or too many subscripts): "Dispatch3DText" E:\0.3z Script\gamemodes\BGRP.pwn(17061) : warning 215: expression has no effect E:\0.3z Script\gamemodes\BGRP.pwn(17061) : error 001: expected token: ";", but found "]" E:\0.3z Script\gamemodes\BGRP.pwn(17061) : error 029: invalid expression, assumed zero E:\0.3z Script\gamemodes\BGRP.pwn(17061) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
forward AssignDispatchCar(playerid, carnum, vehicleid);
public AssignDispatchCar(playerid, carnum, vehicleid)
{
new rank[64], division[64], employer[64], callsign[64], string[64];
GetPlayerFactionInfo(playerid, rank, division, employer);
DPCar[carnum][dpCarID] = vehicleid;
format(DPCar[carnum][dpFaction], 10, "%s", employer);
format(DPCar[carnum][dpModel], 24, "%s", GetVehicleName(vehicleid));
DPCar[carnum][dpOfficerID] = playerid;
format(string, sizeof(string), "%s-%d", callsign, PlayerInfo[playerid][pBadgeNum]);
Copcar3DText[vehicleid] = Create3DTextLabel(string, 0xC8C8C8C8, 0.0, 0.0, 0.0, 50.0, 0, 1 ); //<< Error Line
}
Copcar3DText[vehicleid] = Create3DTextLabel(string, 0xC8C8C8C8, 0.0, 0.0, 0.0, 50.0, 0, 1 ); //<< Error Line
new Text3D:Copcar3DText;
new Text3D:Copcar3DText[MAX_PLAYERS];
new Text3D:Copcar3DText[MAX_PLAYERS];
new Text3D:Copcar3DText[MAX_VEHICLES];
You changed nothing.
pawn Код:
In short, you're creating an array with insufficient items. |