22.05.2013, 22:13
How to solve this Errors?
Part of the script:
Код:
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(15741) : error 017: undefined symbol "playerid" C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(15742) : error 028: invalid subscript (not an array or too many subscripts): "cOwned" C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(15742) : error 028: invalid subscript (not an array or too many subscripts): "idcar" C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(15742) : error 017: undefined symbol "playerid" C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(15742) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
public OnGameModeInit() { new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id; new idcar = GetPlayerVehicleID(playerid); vehicle3Dtext[ cOwned[idcar[playerid]][vehicle_id] ] = Create3DTextLabel(cOwned[idcar[playerid]][cOwner], COLOR_RED, 0.0, 0.0, 0.0, 50.0, 0, 1 ); Attach3DTextLabelToVehicle( vehicle3Dtext[cOwned[idcar[playerid]][vehicle_id] ] , cOwned[idcar[playerid]][vehicle_id], 0.0, 0.0, 0.0);