Pawn.CMD problem
#1

Hello, i have problem with plugin Pawn.CMD
https://sampforum.blast.hk/showthread.php?tid=608474


When install all and compile get this errors:

Код:
C:\Users\Antonio\Desktop\UNDERSTYLE ROLEPLAY - SAMP\pawno\include\Pawn.CMD.inc(56) : error 025: function heading differs from prototype
C:\Users\Antonio\Desktop\UNDERSTYLE ROLEPLAY - SAMP\pawno\include\Pawn.CMD.inc(60) : error 025: function heading differs from prototype
Pawn.CMD include:
http://pastebin.com/gPCVKCfs


56 line:
Код:
		forward OnPlayerCommandReceived(playerid, cmd[], params[], flags);
60 line:
Код:
		forward OnPlayerCommandPerformed(playerid, cmdtext[], success)
55-61 line:
Код:
		#if defined OnPlayerCommandReceived
			forward OnPlayerCommandReceived(playerid, cmd[], params[], flags);
		#endif

		#if defined OnPlayerCommandPerformed
			forward OnPlayerCommandPerformed(playerid, cmdtext[], success)
		#endif
Reply
#2

Find these two callbacks in your script and change the parameters to those listed in the include file.
Reply
#3

thanks i fix , but result -1 is for old !succes, 0 is for succes ?
Reply
#4

result will be -1 if the command doesn't exist. In ZCMD and earlier versions of Pawn.CMD there was success parameter with value of 0 if the command didn't exist and 1 if it did.
Reply
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
result will be -1 if the command doesn't exist. In ZCMD and earlier versions of Pawn.CMD there was success parameter with value of 0 if the command didn't exist and 1 if it did.
Just a note to add to that...

result is -1 when the command doesn't exist.
Otherwise result is whatever you return in the command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)