SA-MP Forums Archive
erorrs when complie[sloved] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: erorrs when complie[sloved] (/showthread.php?tid=139577)



erorrs when complie[sloved] - oObig_manOo - 05.04.2010

D:\servers\samp\new\gamemodes\1.8.pwn(40) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")
D:\servers\samp\new\gamemodes\1.8.pwn(5904) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
D:\servers\samp\new\gamemodes\1.8.pwn(18252) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

line 40 = #define MAX_PICKUPS 150

linn 5904 = public OnPlayerPrivmsg(playerid, recieverid, text[])
{
if(Muted[playerid] == 1) {
SendClientMessage(playerid, COLOR_ERROR, "You are Muted. You Cannot Use This Command");
return 0;
}
if(pmsoff[recieverid] == 1) {
SendClientMessage(playerid, COLOR_YELLOW, "That player is not accepting Private Messages at this time");
return 0;
}
SendClientMessage(recieverid, COLOR_GREY, "Type /pmoff to refuse Personal Messages");
SpamStrings[playerid] ++;
new pmsg[128];
new priname[32],prinamee[32];
GetPlayerName(playerid,priname, sizeof(priname));
GetPlayerName(recieverid,prinamee, sizeof(prinamee));
format(pmsg, sizeof(pmsg), "2**(PM)** From \2;%s(%i)\2; To \2;%s(%i)\2; - %s",priname,playerid,prinamee,recieverid,text); // [0] <jacob> hi
ircSay(EchoConnection, EchoChan,pmsg);

return 1;
}


line 18252 =
public OnPlayerInfoChange(playerid)
{


return 1;
}




Re: erorrs when complie - biltong - 05.04.2010

OnPlayerPrivMessage and OnPlayerInfoChange have been removed in 0.3.

As for your redefinition, the compiler is telling you that there is already something called "MAX_PICKUPS" which is in a_samp.inc. If you want to change that, put "#undef MAX_PICKUPS" BEFORE the define.

k?


Re: erorrs when complie - [MWR]Blood - 05.04.2010

Line 40: You have an include which has the same code.
The other warningselete these public functions.They don't work in 0.3.


Re: erorrs when complie - oObig_manOo - 05.04.2010

Quote:
Originally Posted by biltong
OnPlayerPrivMessage and OnPlayerInfoChange have been removed in 0.3.

As for your redefinition, the compiler is telling you that there is already something called "MAX_PICKUPS" which is in a_c. If you want to change that, put "#undef MAX_PICKUPS" BEFORE the define.

k?
ok thnx guys for fast reply thnx