Quote:
Originally Posted by TheNooB
Quote:
Originally Posted by HsY
Can you help me?
Have four error:
Code:
C:\Documents and Settings\DoDy\Desktop\scripturi\samp\gamemodes\LcS.pwn(26939) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Documents and Settings\DoDy\Desktop\scripturi\samp\gamemodes\LcS.pwn(26941) : error 017: undefined symbol "Mute"
C:\Documents and Settings\DoDy\Desktop\scripturi\samp\gamemodes\LcS.pwn(26941) : warning 215: expression has no effect
C:\Documents and Settings\DoDy\Desktop\scripturi\samp\gamemodes\LcS.pwn(26941) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\DoDy\Desktop\scripturi\samp\gamemodes\LcS.pwn(26941) : error 029: invalid expression, assumed zero
C:\Documents and Settings\DoDy\Desktop\scripturi\samp\gamemodes\LcS.pwn(26941) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
|
place the lines of errors and the lines previous and the lines successors of the errors, please put in , to get better observation
|
Code:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
if(Mute[playerid] == 1)return 0;
PlayerRespond[recieverid] = playerid;
new pname[MAX_PLAYER_NAME];
new rname[MAX_PLAYER_NAME];
new tmpstring[256];
GetPlayerName(receiverid,rname,sizeof(rname));
GetPlayerName(playerid,pname,sizeof(pname));
format(tmpstring,sizeof(tmpstring),"to %s(%d): %s",rname,receiverid,text);
SendClientMessage(playerid,0xFFCC22FF,tmpstring);
format(tmpstring,sizeof(tmpstring),"from %s(%d): %s",pname,playerid,text);
SendClientMessage(receiverid,0xFFFF22FF,tmpstring);
return 1;
}