Error problem
#1

How to solve this Errors?

Код:
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.
Part of the script:

Код:
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);
Reply
#2

Код:
OnPlayerConnect
Reply
#3

Odgovorio sam ti na ZBSAMP opet izbacuje errore
Reply
#4

Place it under OnPlayerConnect
and Speak in English only Please.
Reply
#5

Quote:
Originally Posted by Avi Raj
Посмотреть сообщение
Place it under OnPlayerConnect
and Speak in English only Please.
Now my 4 Error ejected

Код:
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 028: invalid subscript (not an array or too many subscripts): "cOwned"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 028: invalid subscript (not an array or too many subscripts): "idcar"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : warning 215: expression has no effect
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

BUMP
Reply
#7

Quote:
Originally Posted by mufid1995
Посмотреть сообщение
Now my 4 Error ejected

Код:
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 028: invalid subscript (not an array or too many subscripts): "cOwned"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 028: invalid subscript (not an array or too many subscripts): "idcar"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : warning 215: expression has no effect
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Code for line 6075 please, show us the line.
Reply
#8

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
Code for line 6075 please, show us the line.
Код:
 vehicle3Dtext[ cOwned[idcar[playerid]][vehicle_id] ] = Create3DTextLabel(cOwned[idcar[playerid]][cOwner], COLOR_RED, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Full script

http://www.2shared.com/file/FZWzfuMa/4CRP.html
Reply
#9

pawn Код:
vehicle3Dtext[cOwned[idcar[playerid][vehicle_id] = Create3DTextLabel(cOwned[idcar[playerid][cOwner], COLOR_RED, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Try that, too much unnecessary brackets.
Reply
#10

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
pawn Код:
vehicle3Dtext[cOwned[idcar[playerid][vehicle_id] = Create3DTextLabel(cOwned[idcar[playerid][cOwner], COLOR_RED, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Try that, too much unnecessary brackets.
Код:
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 028: invalid subscript (not an array or too many subscripts): "cOwned"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 028: invalid subscript (not an array or too many subscripts): "idcar"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : warning 215: expression has no effect
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Owner\Desktop\4CRP\gamemodes\4CRP.pwn(6075) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Here's the error that throws, there you have the above download link, download it and try it you add this code, this code we need to show 3D text the vehicle owner of the vehicle

Код:
 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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)