SA-MP Forums Archive
Problem after converting strcmp to zcmd - 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: Problem after converting strcmp to zcmd (/showthread.php?tid=528735)



Problem after converting strcmp to zcmd - Hitek - 29.07.2014

I converted my GM from strcmp to zcmd but when i try to compile it I got some errors.

Код:
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(2418) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(2447) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3056) : error 017: undefined symbol "strmatch"
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3064) : error 017: undefined symbol "strmatch"
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3147) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3151) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3163) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3167) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3171) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3175) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3179) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3183) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3187) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3191) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3203) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3207) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3211) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3215) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3219) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3231) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3235) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3239) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3251) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(3255) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(4247) : error 017: undefined symbol "ResetPlayerCash"
C:\Users\Rares\Desktop\Focux RPG\gamemodes\focux.pwn(4905) : error 017: undefined symbol "GivePlayerCash"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Re: Problem after converting strcmp to zcmd - AMouldyLemon - 29.07.2014

Show the coooode and include the lines


Re: Problem after converting strcmp to zcmd - MicroD - 29.07.2014

Do not tell me that you used some random command converter to convert your commands?


Re: Problem after converting strcmp to zcmd - sammp - 29.07.2014

I hope your ZCMD commands are located OUTSIDE of OnPlayerCommandText


Re: Problem after converting strcmp to zcmd - Hitek - 29.07.2014

Include lines.

Код:
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
//#include <pBoom>
#include <streamer>
#include <SII>
//#include <dini>
#include <a_mysql>

#define CREDITS_MESSAGE "{FFAF00}Credits: {FFFFFF}Creditele le revin lui Reachless & FeaR pentru developarea acestui gamemode. Le multumim!"

#include <saveacc>
//#include <*******>
#include <zcmd>
//#include <svCheats>
// ELEVATOR
#include "../include/gl_common.inc"
Error 1
Код:
				GivePlayerCash(i, value);
Error 2
Код:
				GivePlayerCash(i, value);
Error 3
Код:
	if(PlayerInfo[playerid][pAdmin] < 5 && !strmatch(vInfo[OwnedVeh(vehicleid)][vOwner], "Unbought"))
Error 4
Код:
		if(OwnedVeh(vehicleid) != 0 && vInfo[OwnedVeh(vehicleid)][vLocked] == 1 && !strmatch(vInfo[OwnedVeh(vehicleid)][vOwner], pName(playerid)))
Error 5
Код:
		if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
Error 6
Код:
		else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
Error 7
Код:
		if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
...
...
...
Error 25
Код:
	ResetPlayerCash(playerid);
Error 26
Код:
					GivePlayerCash(i, Jackpot);



Re: Problem after converting strcmp to zcmd - Hitek - 29.07.2014

Quote:
Originally Posted by MicroD
Посмотреть сообщение
Do not tell me that you used some random command converter to convert your commands?
No, I used a converter, this converter: http://www.solidfiles.com/d/51e7d126f5/Conversor.hta

Quote:
Originally Posted by sammp
Посмотреть сообщение
I hope your ZCMD commands are located OUTSIDE of OnPlayerCommandText
No, the commands are in OnPlayerCommandText


Re: Problem after converting strcmp to zcmd - Don_Cage - 29.07.2014

ZCMD is supose to be OUTSIDE the OnPlayerCommandText callback


Re: Problem after converting strcmp to zcmd - Hitek - 29.07.2014

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
ZCMD is supose to be OUTSIDE the OnPlayerCommandText callback
Can you explain?


Re: Problem after converting strcmp to zcmd - MicroD - 29.07.2014

ZCMD commands should not be under OnPlayerCommandText because it's not the way it works. Just all commands put at the end of the gamemode or somewhere between publics or functions.


Re: Problem after converting strcmp to zcmd - AMouldyLemon - 29.07.2014

pawn Код:
public OnPlayerCommandText
{
LEAVE THIS
}




CMD:CommandsGoHERE(playerid, params[])
{
    command lines

return 1;
}