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



ERrors - viosteaua98 - 01.11.2011

pawn Код:
dcmd_godoff(playerid,params[]) {
    #pragma unused params
    if(IsPlayerCommandLevel(playerid,"god")) {
        SendCommandMessageToAdmins(playerid,"GOD");
        if(!Config[GodWeapons]) { SetPlayerHealth(playerid,100); return SendClientMessage(playerid,yellow,"Your god is off."); }
        else { SetPlayerHealth(playerid,100); SetPlayerSkin(playerid, 1); RemovePlayerWeapon(playerid,38); RemovePlayerWeapon(playerid,16); return SendClientMessage(playerid,yellow,"You have deleted yourself infinite health, minigun,grenades."); }
    } else return SendLevelErrorMessage(playerid,"godoff");
}
Errors
pawn Код:
D:\Jocuri\Gta san andreas\Rar\Xtreme\filterscripts\XtremeAdmin2.pwn(757) : error 017: undefined symbol "RemovePlayerWeapon"
D:\Jocuri\Gta san andreas\Rar\Xtreme\filterscripts\XtremeAdmin2.pwn(757) : error 017: undefined symbol "RemovePlayerWeapon"
D:\Jocuri\Gta san andreas\Rar\Xtreme\filterscripts\XtremeAdmin2.pwn(1226) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: ERrors - Kostas' - 01.11.2011

It's
pawn Код:
ResetPlayerWeapon
for the errors.
For the warning, on top
pawn Код:
forward OnPlayerPrivmsg(your parameters here);



Re: ERrors - viosteaua98 - 01.11.2011

pawn Код:
D:\Jocuri\Gta san andreas\Rar\Xtreme\filterscripts\XtremeAdmin2.pwn(757) : error 017: undefined symbol "ResetPlayerWeapon"
D:\Jocuri\Gta san andreas\Rar\Xtreme\filterscripts\XtremeAdmin2.pwn(757) : error 017: undefined symbol "ResetPlayerWeapon"
D:\Jocuri\Gta san andreas\Rar\Xtreme\filterscripts\XtremeAdmin2.pwn(1226) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: ERrors - bartje01 - 01.11.2011

ResetPlayerWeapons


Re: ERrors - Kostas' - 01.11.2011

Is it like this?
pawn Код:
ResetPlayerWeapons(playerid);
Edit: Whoops, I forgot the "s" on the first post. Mistake!


Re: ERrors - Max_Coldheart - 01.11.2011

Yes it is.


Re: ERrors - viosteaua98 - 01.11.2011

ty <3


Re: ERrors - bartje01 - 01.11.2011

Quote:
Originally Posted by Kostas'
Посмотреть сообщение
Is it like this?
pawn Код:
ResetPlayerWeapons(playerid);
Edit: Whoops, I forgot the "s" on the first post. Mistake!
Yes, indeed :P


Re: ERrors - Max_Coldheart - 01.11.2011

Helping is a privilage.


Re: ERrors - Kostas' - 01.11.2011

I didn't ask if it is like this "generally". I know that, just I didn't wriote the "s". I wanted to ask him, if it's like this on the code he has! :P