PAWN.CMD issue
#1

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"
Reply
#2

you're using 2 or more command includes, unload previously used include.
Reply
#3

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
pawn Code:
callcmd::ame
Reply
#4

Quote:
Originally Posted by Mugala
View Post
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
View Post
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
pawn Code:
callcmd::ame
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
Reply
#5

Quote:
Originally Posted by GeorgeMcReary
View Post
[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()
Reply
#6

Or just pc_cmd_ame().
Reply
#7

Quote:
Originally Posted by GTLS
View Post
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
View Post
Or just pc_cmd_ame().
thanks... command issue was solved. i just pressed ctrl+H and replaced all cmd_ to callcmd: and it worked..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)