28.01.2015, 18:34
Hi !
i created a public as you see down of the Thread, i don't know where is the problem.
i write the errors in Compiler, forward and public !
Errors:
Line 3500 in error:
Public And Forward:
i created a public as you see down of the Thread, i don't know where is the problem.
i write the errors in Compiler, forward and public !
Errors:
pawn Код:
// all 26 errors are like this, but this is one of errors:
.pwn(3500) : error 035: argument type mismatch (argument 2)
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
pawn Код:
// OnPlayerDisconnect
format(string,sizeof(string),"%s(%d) Left The Server",PlayerName(playerid),playerid);
SCMToAll(playerid,0x999999AA,string);
pawn Код:
forward SCMToAll(playerid,col[],msg[]);
public SCMToAll(playerid,col[],msg[])
{
for(new i=0;i<MAX_PLAYERS;i++)
{
//This "pPosX" and ... it's like GetPlayerPos in OnPlayerUpdate !
if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,3,PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]))
{
SendClientMessage(i,col,msg);
}
}
}