Error... Help? - 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: Error... Help? (
/showthread.php?tid=312488)
Weapons bug.. Error 010 -
Noner - 21.01.2012
Hey. Today I was need to change GivePlayerValidWeapon to GivePlayerWeapon since GivePlayerValidWeapon did not give me weapon. I was need to change it on /lspd duty commands, and then I got these errors...
Код:
C:\Users\i\server\gamemodes\EG-RP.pwn(4839) : error 021: symbol already defined: "GivePlayerWeapon"
C:\Users\\server\gamemodes\EG-RP.pwn(4841) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4842) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4844) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4849) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4854) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4859) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4864) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4869) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4874) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4879) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4884) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4889) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4894) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4899) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(4905) : error 010: invalid function or declaration
C:\Users\\server\gamemodes\EG-RP.pwn(87127) : warning 203: symbol is never used: "GetPizzaDistance"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
16 Errors.
I dont care about the GetPizzaDistance since its not done yet, But invalid function or declaration?
What do I have to do O_o..
Re: Error... Help? -
orbison - 21.01.2012
Did you try to change one of GivePlayerValidWeapon to GivePlayerWeapon and then try it IG?
Re: Error... Help? -
Noner - 21.01.2012
Yes, I did. It worked.
Any know why it not working?
Re: Error... Help? -
NaTkAkN - 21.01.2012
Please link pastebin D:
Re: Error... Help? -
pop.nicku - 21.01.2012
Post line 4839 and 4841
Re: Error... Help? -
Noner - 21.01.2012
4839:
pawn Код:
GivePlayerWeapon( playerid, WeaponID, Ammo )
4841:
pawn Код:
if((PlayerInfo[playerid][pConnectTime] < 2 || PlayerInfo[playerid][pWRestricted] > 0) && WeaponID != 46 && WeaponID != 43) return 1;
switch( WeaponID )
{
Re: Error... Help? -
pop.nicku - 21.01.2012
You added a different GivePlayerWeapon function besides the one from a_samp.inc ?
Re: Error... Help? -
Noner - 21.01.2012
Um, I dont think so...
Its not scratch..
It was scripted with GivePlayerVaildWeapon, but it did not give weapons, and changed to GivePlayerWeapon
Re: Error... Help? -
Noner - 21.01.2012
Is something wrong with it? Cant see it.
I know, double posting.
But I need it.
Re: Error... Help? -
orbison - 21.01.2012
Delete
pawn Код:
GivePlayerWeapon( playerid, WeaponID, Ammo )
That should fix it :P