SA-MP Forums Archive
Problem - 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 (/showthread.php?tid=606919)



Problem - GoldenLion - 11.05.2016

When I try to compile this: http://pastebin.com/WGgNmnm7
I get these errors:
Код:
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(31) : warning 217: loose indentation
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(46) : warning 217: loose indentation
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(49) : warning 217: loose indentation
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(49) : error 029: invalid expression, assumed zero
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(49) : error 004: function "OnPlayerShootPlayer" is not implemented
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(52) : error 017: undefined symbol "Target"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(53) : error 017: undefined symbol "Target"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(54) : error 017: undefined symbol "ArmourLost"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(54) : error 017: undefined symbol "Target"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(55) : error 017: undefined symbol "HealthLost"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(55) : error 017: undefined symbol "Target"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(57) : error 017: undefined symbol "Shooter"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(83) : error 017: undefined symbol "Target"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(84) : error 017: undefined symbol "Target"
C:\Users\User\Documents\Desktop\Los Santos Life Roleplay\filterscripts\WeaponDamages.pwn(89) : error 030: compound statement not closed at the end of file (started at line 17)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
I have the OPSP (OnPlayerShootPlayer) include. I could always compile the script without any errors, but now when I made a little change to OnPlayerTakeDamage (didn't touch OnPlayerShootPlayer) I get these errors. Anybody knows what's the problem?
EDIT: Tried the older version of the filterscript before I made the little change and it gives me the same errors.


Re: Problem - GoldenLion - 11.05.2016

I couldn't compile the gamemode after adding something, I could always compile it without any errors. I always get some dumb errors that I never had before when I just make a little update. Something is wrong with my pawno, after updating anything I get loads of errors.


Re: Problem - justjamie - 11.05.2016

welp what did you add


Re: Problem - F1N4L - 11.05.2016

Quote:

error 017: undefined symbol "***"

Variables not found. Create it.

@edit

Check the callback for more details.


Re: Problem - oMa37 - 11.05.2016

http://pastebin.com/dBM6Duvs
This worked for me, you were missing one ' } '


Re: Problem - GoldenLion - 11.05.2016

Quote:
Originally Posted by oMa37
Посмотреть сообщение
http://pastebin.com/dBM6Duvs
This worked for me, you were missing one ' } '
Thank you very much!