[HELP]Functions from Gamemode to FilterScript?
#1

Hello.

-
I am using a game mode which replaces the money functions to reduce Hacking possibilities, (something I would like to keep).

Now my issue is that when I grab a filterscript, lets say.."Car Ownership".

It is going to use the more common functions. (GetPlayerMoney, etc.)

But my gamemode uses (GetPlayerCash, etc.)
-

So how can I make these filterscripts the same format without getting errors n Compile.
Reply
#2

include the same anti cheat then also change that to GetPlayerCash
Reply
#3

So i should just put the GetPlayerCash Definition into the new Filterscript?
Reply
#4

yes give it a try and see what happens
Reply
#5

Okay I did this. Of course this got rid of the errors, but now there is a whole new list of errors.

Код:
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(52) : error 017: undefined symbol "pInfo"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(52) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(56) : error 017: undefined symbol "pCash"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(57) : error 017: undefined symbol "ResetMoneyBar"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(58) : error 017: undefined symbol "UpdateMoneyBar"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(59) : error 017: undefined symbol "pCash"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(77) : error 017: undefined symbol "pCash"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(493) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(493) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(533) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(533) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(536) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(536) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(539) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(539) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(542) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(542) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(602) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(602) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(492) : warning 203: symbol is never used: "idx"
Reply
#6

post the lines too
Reply
#7

Here are the current errors, I just eliminated that mess.

Код:
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(54) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(54) : warning 215: expression has no effect
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(54) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(54) : error 029: invalid expression, assumed zero
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(54) : fatal error 107: too many error messages on one line
Line 54:
Код:
PlayerInfo[playerid][pCash] += money;
Reply
#8

And when I try to Add in the PlayerInfo Definitions.

Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(52) : error 017: undefined symbol "pInfo"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(52) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(56) : error 017: undefined symbol "pCash"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(57) : error 017: undefined symbol "ResetMoneyBar"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(58) : error 017: undefined symbol "UpdateMoneyBar"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(59) : error 017: undefined symbol "pCash"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(77) : error 017: undefined symbol "pCash"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(493) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(493) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(533) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(533) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(536) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(536) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(539) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(539) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(542) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(542) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(602) : error 017: undefined symbol "strtok"
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(602) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\HP_Administrator\Desktop\bfxUDx2.pwn(492) : warning 203: symbol is never used: "idx"
If you notice it's that same mess as above..
Reply
#9

are you missing a .inc file?
Reply
#10

Use CallRemoteFunction => Click

and with an easy define it looks like normal
pawn Код:
#define GetPlayerCash(%1) CallRemoteFunction("GetPlayerCash", "d", %1)
Note: The function need to be a public (all information can be founded in the wiki, link in first line)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)