9 filterscript compile errors
#1

Here are my PAWN compiler errors:

> http://pastebin.com/Rh90mGBg <

Yes, my gamemode uses GiveZaiatMoney, ResetZaiatWeapons & GiveZaiatWeapon rather than GivePlayerMoney, ResetPlayerWeapons & GivePlayerWeapon. My gamemode compiles with 0 errors.

Here is my filterscript cars.pwn:

> http://pastebin.com/4YQVPFve <

Any help is greatly appreciated.
Reply
#2

done
http://pastebin.com/ZvHRDFaY
or use
#define GiveZaiatMoney GivePlayerMoney
or use
#define GiveZaiatMoney GivePlayerMoney
Reply
#3

Quote:
Originally Posted by Aveger
Посмотреть сообщение
You just changed GiveZaiatMoney to GivePlayerMoney. I need it to stay as GiveZaiatMoney for it to work with my gamemode :/

Код:
C:\Documents and Settings\User\Desktop\FZ-RP\filterscripts\cars.pwn(2119) : error 017: undefined symbol "ResetZaiatWeapons"
C:\Documents and Settings\User\Desktop\FZ-RP\filterscripts\cars.pwn(2122) : error 017: undefined symbol "GiveZaiatWeapon"
C:\Documents and Settings\User\Desktop\FZ-RP\filterscripts\cars.pwn(2434) : error 017: undefined symbol "GiveZaiatWeapon"
C:\Documents and Settings\User\Desktop\FZ-RP\filterscripts\cars.pwn(2423) : warning 204: symbol is assigned a value that is never used: "ammo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#4

Quote:
Originally Posted by Aveger
Посмотреть сообщение
or use
#define GiveZaiatMoney GivePlayerMoney
Still same errors.

Код:
C:\Documents and Settings\User\Desktop\FZ-RP\filterscripts\cars.pwn(2119) : error 017: undefined symbol "ResetZaiatWeapons"
C:\Documents and Settings\User\Desktop\FZ-RP\filterscripts\cars.pwn(2122) : error 017: undefined symbol "GiveZaiatWeapon"
C:\Documents and Settings\User\Desktop\FZ-RP\filterscripts\cars.pwn(2434) : error 017: undefined symbol "GiveZaiatWeapon"
C:\Documents and Settings\User\Desktop\FZ-RP\filterscripts\cars.pwn(2423) : warning 204: symbol is assigned a value that is never used: "ammo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#5

Did you define it under the includes up?
Reply
#6

do #define giveGiveZaiatWeapon giveplayerweapon
Reply
#7

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
Did you define it under the includes up?
Here is my .pwn

http://pastebin.com/4YQVPFve
Reply
#8

Quote:
Originally Posted by CBCandyBoy
Посмотреть сообщение
do #define giveGiveZaiatWeapon giveplayerweapon
i added this code in:

Код:
#define GiveZaiatWeapon GivePlayerWeapon
#define ResetZaiatWeapons ResetPlayerWeapons
#define GiveZaiatMoney GivePlayerMoney
And it compiled with no errors, but now it doesn't work with my gamemode properly. I spawn weirdly now & user data doesn't come in :/ Is there any other way to fix it?

The thing is it was working when i had the filterscript with GivePlayer___ and such, but in my gamemode its set as GiveZaiat____ and such, so i need to change it for it to work properly.
Reply
#9

pawn Код:
stock GiveZaiatWeapon(playerid,weaponid,ammount)
           {
                    return GivePlayerWeapon(playerid,weaponid,ammount);
           }
           stock ResetZaiatWeapons(playerid)
           {
                  return ResetPlayerWeapon(playerid);
           }
           stock GiveZaiatMoney(playerid,money)
           {
                 return GivePlayerMoney(playerid,money);
           }
Reply
#10

Quote:
Originally Posted by XStormiest
Посмотреть сообщение
pawn Код:
stock GiveZaiatWeapon(playerid,weaponid,ammount)
           {
                    return GivePlayerWeapon(playerid,weaponid,ammount);
           }
           stock ResetZaiatWeapons(playerid)
           {
                  return ResetPlayerWeapon(playerid);
           }
           stock GiveZaiatMoney(playerid,money)
           {
                 return GivePlayerMoney(playerid,money);
           }
This allowed me to compile without errors, but in my gamemode i dont use GivePlayerMoney, I use GiveZaiatMoney, so now when you buy cars and such (which is in my filterscript) it doesnt take away any money from the user.
Reply
#11

use GiveZayatMoney(playerid,-ammount);
attention , these stock should have some problems because i didn't tested it
i maked these function to work like original one...
Reply
#12

Quote:
Originally Posted by XStormiest
Посмотреть сообщение
use GiveZayatMoney(playerid,-ammount);
attention , these stock should have some problems because i didn't tested it
i maked these function to work like original one...
That's what I am using, but I got the errors saying the ___Zaiat___ are not defined
Reply
#13

Fixed it by adding this PAWN code:

Код:
stock GiveZaiatWeapon(playerid,weaponid,ammount)
{
	return GiveZaiatWeapon(playerid,weaponid,ammount);
}
stock ResetZaiatWeapons(playerid)
{
	return ResetZaiatWeapons(playerid);
}
stock GiveZaiatMoney(playerid,money)
{
	return GiveZaiatMoney(playerid,money);
}
Thanks if thats what you meant ^
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)