SA-MP Forums Archive
Compile errors - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Compile errors (/showthread.php?tid=265834)



Compile errors - McCarthy - 02.07.2011

I have been checking my script for like 5 times now and cant find the problem..I'd appreciate if you guys would help out a little
Код:
E:\SAMP\gamemodes\FStudios.pwn(193) : error 017: undefined symbol "dcmd_paintcar"
E:\SAMP\gamemodes\FStudios.pwn(973) : error 017: undefined symbol "Playerid"
E:\SAMP\gamemodes\FStudios.pwn(987) : warning 217: loose indentation
E:\SAMP\gamemodes\FStudios.pwn(1119) : error 029: invalid expression, assumed zero
E:\SAMP\gamemodes\FStudios.pwn(1119) : error 004: function "OnPlayerEnterVehicle" is not implemented
E:\SAMP\gamemodes\FStudios.pwn(1121) : error 017: undefined symbol "vehicleid"
E:\SAMP\gamemodes\FStudios.pwn(1126) : error 017: undefined symbol "vehicleid"
E:\SAMP\gamemodes\FStudios.pwn(1129) : error 017: undefined symbol "vehicleid"
E:\SAMP\gamemodes\FStudios.pwn(1131) : error 017: undefined symbol "vehicleid"
E:\SAMP\gamemodes\FStudios.pwn(1134) : error 017: undefined symbol "vehicleid"
E:\SAMP\gamemodes\FStudios.pwn(1140) : error 029: invalid expression, assumed zero
E:\SAMP\gamemodes\FStudios.pwn(1140) : error 004: function "OnPlayerRequestClass" is not implemented
E:\SAMP\gamemodes\FStudios.pwn(1142) : error 001: expected token: ";", but found "{"
E:\SAMP\gamemodes\FStudios.pwn(1143) : error 017: undefined symbol "SetupPlayerForClassSelection"
E:\SAMP\gamemodes\FStudios.pwn(1147) : warning 225: unreachable code
E:\SAMP\gamemodes\FStudios.pwn(1147) : error 017: undefined symbol "dcmd_paintcar"
E:\SAMP\gamemodes\FStudios.pwn(1149) : error 001: expected token: ";", but found "{"
E:\SAMP\gamemodes\FStudios.pwn(1155) : error 017: undefined symbol "params"
E:\SAMP\gamemodes\FStudios.pwn(1167) : warning 225: unreachable code
E:\SAMP\gamemodes\FStudios.pwn(1167) : error 029: invalid expression, assumed zero
E:\SAMP\gamemodes\FStudios.pwn(1167) : error 004: function "OnPlayerSpawn" is not implemented
E:\SAMP\gamemodes\FStudios.pwn(1174) : warning 225: unreachable code
E:\SAMP\gamemodes\FStudios.pwn(1174) : error 017: undefined symbol "SetupPlayerForClassSelection"
E:\SAMP\gamemodes\FStudios.pwn(1185) : error 029: invalid expression, assumed zero
E:\SAMP\gamemodes\FStudios.pwn(1185) : error 004: function "GameModeExitFunc" is not implemented
E:\SAMP\gamemodes\FStudios.pwn(1189) : error 030: compound statement not closed at the end of file (started at line 183)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


22 Errors.
Heres the lines that cause the problem
http://pastebin.com/HfQTaVVt


Re: Compile errors - SpiderWalk - 02.07.2011

pawn Код:
new vehicleid = GetPlayerVehicleID(Playerid);

change to

new vehicleid = GetPlayerVehicleID(playerid);
which errors do you got now?


Re: Compile errors - McCarthy - 02.07.2011

Quote:
Originally Posted by SpiderWalk
Посмотреть сообщение
which errors do you got now?
Nothing changed in the errors


Re: Compile errors - TheGarfield - 02.07.2011

http://pastebin.com/4EHAVRfq

you check now ?


Re: Compile errors - McCarthy - 02.07.2011

Nope..


Re: Compile errors - McCarthy - 02.07.2011

Found one extra brace but still giving me some errors..

E:\SAMP\gamemodes\FStudios.pwn(65) : warning 217: loose indentation
E:\SAMP\gamemodes\FStudios.pwn(182) : error 029: invalid expression, assumed zero
E:\SAMP\gamemodes\FStudios.pwn(182) : error 004: function "OnPlayerCommandText" is not implemented
E:\SAMP\gamemodes\FStudios.pwn(186) : error 017: undefined symbol "cmdtext"
E:\SAMP\gamemodes\FStudios.pwn(18 : error 017: undefined symbol "playerid"
E:\SAMP\gamemodes\FStudios.pwn(189) : error 017: undefined symbol "playerid"
E:\SAMP\gamemodes\FStudios.pwn(190) : error 017: undefined symbol "playerid"
E:\SAMP\gamemodes\FStudios.pwn(193) : warning 217: loose indentation
E:\SAMP\gamemodes\FStudios.pwn(193) : error 017: undefined symbol "cmdtext"
E:\SAMP\gamemodes\FStudios.pwn(193) : error 029: invalid expression, assumed zero
E:\SAMP\gamemodes\FStudios.pwn(193) : warning 215: expression has no effect
E:\SAMP\gamemodes\FStudios.pwn(193) : error 001: expected token: ";", but found "]"
E:\SAMP\gamemodes\FStudios.pwn(193) : fatal error 107: too many error messages on one line

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


10 Errors.


Re: Compile errors - TheGarfield - 02.07.2011

Quote:
Originally Posted by McCarthy
Посмотреть сообщение
Found one extra brace but still giving me some errors..

E:\SAMP\gamemodes\FStudios.pwn(65) : warning 217: loose indentation
E:\SAMP\gamemodes\FStudios.pwn(182) : error 029: invalid expression, assumed zero
E:\SAMP\gamemodes\FStudios.pwn(182) : error 004: function "OnPlayerCommandText" is not implemented
E:\SAMP\gamemodes\FStudios.pwn(186) : error 017: undefined symbol "cmdtext"
E:\SAMP\gamemodes\FStudios.pwn(18 : error 017: undefined symbol "playerid"
E:\SAMP\gamemodes\FStudios.pwn(189) : error 017: undefined symbol "playerid"
E:\SAMP\gamemodes\FStudios.pwn(190) : error 017: undefined symbol "playerid"
E:\SAMP\gamemodes\FStudios.pwn(193) : warning 217: loose indentation
E:\SAMP\gamemodes\FStudios.pwn(193) : error 017: undefined symbol "cmdtext"
E:\SAMP\gamemodes\FStudios.pwn(193) : error 029: invalid expression, assumed zero
E:\SAMP\gamemodes\FStudios.pwn(193) : warning 215: expression has no effect
E:\SAMP\gamemodes\FStudios.pwn(193) : error 001: expected token: ";", but found "]"
E:\SAMP\gamemodes\FStudios.pwn(193) : fatal error 107: too many error messages on one line

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


10 Errors.
you can post the full code ?


Re: Compile errors - McCarthy - 02.07.2011

Yeah sure..its no big secret.. xD
http://pastebin.com/wVwxUZVv


Re: Compile errors - Stefans94 - 02.07.2011

add this:
Код:
 #pragma tabsize 0
at the top of your script somewhereto solve the first error..
It's not much, but it's something XD

EDIT:
If i'm looking good, you should add a } above return 1; in the gamemodeinit..


Re: Compile errors - McCarthy - 03.07.2011

Quote:
Originally Posted by Stefans94
Посмотреть сообщение
EDIT:
If i'm looking good, you should add a } above return 1; in the gamemodeinit..
Just made it worse