SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/07/2019, 08:33 AM   #1
GeorgeMcReary
Big Clucker
 
Join Date: May 2015
Posts: 184
Reputation: 9
Default PAWN.CMD issue

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"
__________________
GeorgeMcReary is offline   Reply With Quote
Old 15/07/2019, 08:34 AM   #2
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,176
Reputation: 73
Default Re: PAWN.CMD issue

you're using 2 or more command includes, unload previously used include.
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 15/07/2019, 08:38 AM   #3
d3Pedro
Huge Clucker
 
Join Date: Apr 2012
Location: darkness
Posts: 321
Reputation: 94
Default Re: PAWN.CMD issue

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
d3Pedro is offline   Reply With Quote
Old 15/07/2019, 09:46 AM   #4
GeorgeMcReary
Big Clucker
 
Join Date: May 2015
Posts: 184
Reputation: 9
Default Re: PAWN.CMD issue

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
__________________
GeorgeMcReary is offline   Reply With Quote
Old 15/07/2019, 10:11 AM   #5
GTLS
High-roller
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 1,071
Reputation: 119
Default Re: PAWN.CMD issue

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()
__________________

I don't help for rep. I help cuz I was helped in the past.


Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote
Old 15/07/2019, 10:15 AM   #6
SlowARG
Little Clucker
 
Join Date: Feb 2014
Posts: 38
Reputation: 18
Default Re: PAWN.CMD issue

Or just pc_cmd_ame().
__________________
My releases:

[GitLab] [Plugin] Nobody's fork of YSF
[GitLab] [FilterScript] SA-MP S.S.F.P.
SlowARG is offline   Reply With Quote
Old 15/07/2019, 10:34 AM   #7
GeorgeMcReary
Big Clucker
 
Join Date: May 2015
Posts: 184
Reputation: 9
Default Re: PAWN.CMD issue

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..
__________________

Last edited by GeorgeMcReary; 15/07/2019 at 10:36 AM. Reason: wrong key combination
GeorgeMcReary is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tool/Web/Other] PAWN Fiddle - Share & run PAWN code online Peek Tools and Files 13 10/04/2019 07:12 PM
Odd pastebin issue: Can't paste with 'PAWN' highlighting.. MP2 Everything and Nothing 4 11/03/2014 10:22 AM
Unoccupied vehicle sync, boat surfing pausing issue, parachute with vehicle issue, surfing w/ skydiving issue Kar Bug Reports 2 10/06/2013 09:24 AM
[Tool/Web/Other] PAWN Scanner - Scan PAWN files for information. Slice Tools and Files 10 15/07/2012 07:09 PM
PAWN Issue Dresden Help Archive 2 19/10/2009 02:48 PM


All times are GMT. The time now is 10:04 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.