9 filterscript compile errors -
Fizz - 27.01.2013
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.
Re: 9 filterscript compile errors -
SwisherSweet - 27.01.2013
done
http://pastebin.com/ZvHRDFaY
or use
#define GiveZaiatMoney GivePlayerMoney
or use
#define GiveZaiatMoney GivePlayerMoney
Re: 9 filterscript compile errors -
Fizz - 27.01.2013
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.
Re: 9 filterscript compile errors -
Fizz - 27.01.2013
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.
Re: 9 filterscript compile errors -
SilverKiller - 27.01.2013
Did you define it under the includes up

?
Re: 9 filterscript compile errors -
CBCandyBoy - 27.01.2013
do #define giveGiveZaiatWeapon giveplayerweapon
Re: 9 filterscript compile errors -
Fizz - 27.01.2013
Quote:
Originally Posted by SilverKiller
Did you define it under the includes up  ?
|
Here is my .pwn
http://pastebin.com/4YQVPFve
Re: 9 filterscript compile errors -
Fizz - 27.01.2013
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.
Re: 9 filterscript compile errors -
XStormiest - 27.01.2013
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);
}
Re: 9 filterscript compile errors -
Fizz - 27.01.2013
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.
Re: 9 filterscript compile errors -
XStormiest - 27.01.2013
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...
Re: 9 filterscript compile errors -
Fizz - 27.01.2013
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
Re: 9 filterscript compile errors -
Fizz - 27.01.2013
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 ^