erorrs when complie[sloved]
#1

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;
}

Reply
#2

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?
Reply
#3

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)