Error... Help?
#1

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..
Reply
#2

Did you try to change one of GivePlayerValidWeapon to GivePlayerWeapon and then try it IG?
Reply
#3

Yes, I did. It worked.
Any know why it not working?
Reply
#4

Please link pastebin D:
Reply
#5

Post line 4839 and 4841
Reply
#6

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 )
    {
Reply
#7

You added a different GivePlayerWeapon function besides the one from a_samp.inc ?
Reply
#8

Um, I dont think so...
Its not scratch..
It was scripted with GivePlayerVaildWeapon, but it did not give weapons, and changed to GivePlayerWeapon
Reply
#9

Is something wrong with it? Cant see it.
I know, double posting.
But I need it.
Reply
#10

Delete
pawn Код:
GivePlayerWeapon( playerid, WeaponID, Ammo )
That should fix it :P
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)