30.10.2012, 19:51
Quote:
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\sas-rp.pwn(3040) : error 035: argument type mismatch (argument 3) C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\sas-rp.pwn(3054) : error 035: argument type mismatch (argument 3) C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\sas-rp.pwn(306 : error 035: argument type mismatch (argument 3) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
pawn Код:
stock SendDepartmentMessage(colour, string)
{
#if defined DEBUG
printf("[Debug] SendDepartmentMessage(Colour, %s);", string);
#endif
foreach(Player, i)
{
new fac = PlayerInfo[i][pMember];
if(FactionInfo[fac][FactionType] == 1 || FactionInfo[fac][FactionType] == 2 || FactionInfo[fac][FactionType] == 3)
{
SendClientMessage(i, colour, string);//3040
}
}
}
stock SendJobMessage(colour, string, job)
{
#if defined DEBUG
printf("[Debug] SendFactionMessage(Colour, %s, %d);", string, job);
#endif
foreach(Player, i)
{
if(PlayerInfo[i][pJob] == job)
{
SendClientMessage(i, colour, string);//3054
}
}
}
stock SendFactionMessage(colour, string, faction)
{
#if defined DEBUG
printf("[Debug] SendFactionMessage(Colour, %s, %d);", string, faction);
#endif
foreach(Player, i)
{
if(PlayerInfo[i][pMember] == faction)
{
SendClientMessage(i, colour, string);//3068
}
}
}