SA-MP Forums Archive
Why I Get so many Errors Like this? - 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: Why I Get so many Errors Like this? (/showthread.php?tid=440903)



Why I Get so many Errors Like this? - RalphHaro - 31.05.2013

Can somebody please help me?
Код:
C:\DOCUME~1\USER\Desktop\HGRP\pawno\include\streamer.inc(363) : error 017: undefined symbol "Streamer_OnPlayerPickUpPickup"
C:\DOCUME~1\USER\Desktop\HGRP\pawno\include\streamer.inc(383) : error 017: undefined symbol "Streamer_OnPlayerEnterCP"
C:\DOCUME~1\USER\Desktop\HGRP\pawno\include\streamer.inc(403) : error 017: undefined symbol "Streamer_OnPlayerLeaveCP"
C:\DOCUME~1\USER\Desktop\HGRP\pawno\include\streamer.inc(423) : error 017: undefined symbol "Streamer_OnPlayerEnterRaceCP"
C:\DOCUME~1\USER\Desktop\HGRP\pawno\include\streamer.inc(443) : error 017: undefined symbol "Streamer_OnPlayerLeaveRaceCP"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(1357) : error 017: undefined symbol "RPN"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(1358) : error 017: undefined symbol "SendRobberyMessage"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(1359) : error 017: undefined symbol "SendCopMessage"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(1377) : error 017: undefined symbol "IsACop"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(1381) : error 017: undefined symbol "IsACop"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(1384) : error 017: undefined symbol "GiveDodMoney"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(1526) : error 017: undefined symbol "IsPlayerLoggedIn"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(1566) : error 017: undefined symbol "ResetDodWeapons"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(2471) : error 017: undefined symbol "split"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(2559) : error 017: undefined symbol "IsPlayerLoggedIn"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(2564) : error 017: undefined symbol "RPNU"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(2586) : error 017: undefined symbol "SaveDodAmmo"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(2822) : error 017: undefined symbol "SaveToys"
C:\Documents and Settings\USER\Desktop\HGRP\gamemodes\HGRPv1.pwn(2841) : error 017: undefined symbol "RPNU"



Respuesta: Why I Get so many Errors Like this? - Stront - 31.05.2013

It gives 26 errores? It might be because you have a bracket without close or something that makes your pawn compiler fail in the try.


Re: Why I Get so many Errors Like this? - RalphHaro - 31.05.2013

HELP ME PLS!!!


Re: Why I Get so many Errors Like this? - RalphHaro - 31.05.2013

NO ONE KNOW HOW? PLEASE HELP ME....


Re: Why I Get so many Errors Like this? - Littlehelper - 31.05.2013

Show your code.


Re: Why I Get so many Errors Like this? - RalphHaro - 31.05.2013

Quote:
Originally Posted by Littlehelper[MDZ]
Посмотреть сообщение
Show your code.
I've successfully compiled it earlier, but I add some commands and this happens. I've got the commands from the script of my friend which it is also successfully compiled, but I don't know why this is happening when I re-compile my script. Maybe there is something that is not defined or? Don't have an idea anymore.


Re: Why I Get so many Errors Like this? - mahdi499 - 31.05.2013

You Added Or missed a bracket,That's why,recheck what you added


Re: Why I Get so many Errors Like this? - Konstantinos - 31.05.2013

Quote:
Originally Posted by RalphHaro
Посмотреть сообщение
I've successfully compiled it earlier, but I add some commands and this happens. I've got the commands from the script of my friend which it is also successfully compiled, but I don't know why this is happening when I re-compile my script. Maybe there is something that is not defined or? Don't have an idea anymore.
That's a rule at programming.. copying-pasting won't make it works if you've not defined anything.

First of all, about the streamer errors - use the latest plugin/include.

About the rest, they're all most likely custom functions. Try to find to your friend's script about these functions either as
pawn Код:
stock IsACop(playerid)
// ...
or
pawn Код:
IsACop(playerid)
// ...
and add them to your mode. Make sure the variables those functions contains are defined to your mode as well.


Re: Why I Get so many Errors Like this? - RalphHaro - 31.05.2013

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
That's a rule at programming.. copying-pasting won't make it works if you've not defined anything.

First of all, about the streamer errors - use the latest plugin/include.

About the rest, they're all most likely custom functions. Try to find to your friend's script about these functions either as
pawn Код:
stock IsACop(playerid)
// ...
or
pawn Код:
IsACop(playerid)
// ...
and add them to your mode. Make sure the variables those functions contains are defined to your mode as well.
I looked in my friends script, and it is absolutely the same as what I have in my script....
Код:
stock IsACop(playerid)
{
	if(PlayerInfo[playerid][pFac] == 1) return 1;
	return 0;
}



Re: Why I Get so many Errors Like this? - Konstantinos - 31.05.2013

Quote:
Originally Posted by RalphHaro
Посмотреть сообщение
I looked in my friends script, and it is absolutely the same as what I have in my script....
Quote:

error 017: undefined symbol "IsACop"

Compilers were created for DOING something. If it says it's not defined, then it IS undefined symbol for it. Add the stock to your mode and the rest of the functions and re-compile.