ERrors
#1

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

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

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

ResetPlayerWeapons
Reply
#5

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

Yes it is.
Reply
#7

ty <3
Reply
#8

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
Reply
#9

Helping is a privilage.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)