PAWN.CMD issue - 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: PAWN.CMD issue (
/showthread.php?tid=667963)
PAWN.CMD issue -
GeorgeMcReary - 15.07.2019
Hello.. When I include PAWN.CMD in my gm, this error pops up:
Code:
S:\SAMP Stuff\SAMP-master\pawno\include\Pawn.CMD.inc(58) : error 025: function heading differs from prototype
S:\SAMP Stuff\SAMP-master\pawno\include\Pawn.CMD.inc(62) : error 025: function heading differs from prototype
and Also, all commands become undefined. All of them.....
Code:
error 017: undefined symbol "cmd_ame"
Re: PAWN.CMD issue -
Mugala - 15.07.2019
you're using 2 or more command includes, unload previously used include.
Re: PAWN.CMD issue -
d3Pedro - 15.07.2019
Replace your current OnPlayerCommandReceived with
pawn Code:
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
and OnPlayerCommandPerformed with
pawn Code:
public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
Code:
error 017: undefined symbol "cmd_ame"
You're attempting to call a command that does not exists, either create the command or delete it. Have a look on your gamemode for
Re: PAWN.CMD issue -
GeorgeMcReary - 15.07.2019
Quote:
Originally Posted by Mugala
you're using 2 or more command includes, unload previously used include.
|
Code:
#include <a_samp>
#include <dini2>
#include <a_mysql>
#include <md5>
#include <streamer>
#include <sscanf2>
#include <strlib>
#include <zones>
#include <Pawn.CMD>
#include <geoip>
#include <YSI\y_iterate>
#include <YSI\y_timers>
#include <YSI\y_va>
I dont think I am using 2 cmd processors...
Quote:
Originally Posted by d3Pedro
Replace your current OnPlayerCommandReceived with
pawn Code:
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
and OnPlayerCommandPerformed with
pawn Code:
public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
Code:
error 017: undefined symbol "cmd_ame"
You're attempting to call a command that does not exists, either create the command or delete it. Have a look on your gamemode for
|
I tried changin the headers from PAWN.CMD file, but it still gives the warning. And for commands, they are already existing. If I use ZCMD, it compiles clean. This happens only if I use PAWN.CMD
Re: PAWN.CMD issue -
GTLS - 15.07.2019
Quote:
Originally Posted by GeorgeMcReary
[code]
I tried changin the headers from PAWN.CMD file, but it still gives the warning. And for commands, they are already existing. If I use ZCMD, it compiles clean. This happens only if I use PAWN.CMD
|
Pawn.CMD uses
callcmd:: method to manually call commands. ZCMD uses cmd_name to call them. zcmd basically takes commands as functions. Thats why, search in your script for cmd_cmdname... and change it to callcmd::cmdname. for example, change cmd_ame() into callcmd::ame()
Re: PAWN.CMD issue -
SlowARG - 15.07.2019
Or just pc_cmd_ame().
Re: PAWN.CMD issue -
GeorgeMcReary - 15.07.2019
Quote:
Originally Posted by GTLS
Pawn.CMD uses callcmd:: method to manually call commands. ZCMD uses cmd_name to call them. zcmd basically takes commands as functions. Thats why, search in your script for cmd_cmdname... and change it to callcmd::cmdname. for example, change cmd_ame() into callcmd::ame()
|
Quote:
Originally Posted by SlowARG
Or just pc_cmd_ame().
|
thanks... command issue was solved. i just pressed ctrl+H and replaced all cmd_ to callcmd: and it worked..