SA-MP Forums Archive
Error problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error problem (/showthread.php?tid=438935)



Error problem - mufid1995 - 22.05.2013

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);



Re: Error problem - Kiweeh - 22.05.2013

Код:
OnPlayerConnect



Re: Error problem - mufid1995 - 22.05.2013

Odgovorio sam ti na ZBSAMP opet izbacuje errore


Re: Error problem - Avi Raj - 23.05.2013

Place it under OnPlayerConnect
and Speak in English only Please.


Re: Error problem - mufid1995 - 23.05.2013

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.



Re: Error problem - mufid1995 - 23.05.2013

BUMP


Re: Error problem - dannyk0ed - 23.05.2013

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.


Re: Error problem - mufid1995 - 23.05.2013

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


Re: Error problem - dannyk0ed - 23.05.2013

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.


Re: Error problem - mufid1995 - 23.05.2013

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);