Problem after converting strcmp to zcmd
#1

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

Show the coooode and include the lines
Reply
#3

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

I hope your ZCMD commands are located OUTSIDE of OnPlayerCommandText
Reply
#5

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);
Reply
#6

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

ZCMD is supose to be OUTSIDE the OnPlayerCommandText callback
Reply
#8

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

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.
Reply
#10

pawn Код:
public OnPlayerCommandText
{
LEAVE THIS
}




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

return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)