10.08.2014, 15:25
I don't think it matters but ok.
{
SendDeathMessageToPlayer(killerid, killerid, playerid, reason);
SendDeathMessageToPlayer(playerid, killerid, playerid, reason);
format(string, sizeof(string), "{ffc000}[Paintball]: You killed %s.",GetName(playerid));
SendClientMessage(killerid, COLOR_WHITE, string);
format(string, sizeof(string), "{ffc000}[Paintball]: You were killed by %s.",GetName(killerid));
SendClientMessage(playerid, COLOR_WHITE, string);
new pinfo[128];
KillP[killerid]++;
format(pinfo,sizeof(pinfo),"You have %d kills and %d deaths.", KillP[killerid],DeathP[killerid]);
TextDrawSetString(Paintball[2][killerid], pinfo);
TextDrawShowForPlayer(killerid, Paintball[2][killerid]);
DeathP[playerid]++;
format(pinfo,sizeof(pinfo),"You have %d kills and %d deaths.", KillP[playerid],DeathP[playerid]);
TextDrawSetString(Paintball[2][playerid], pinfo);
TextDrawShowForPlayer(playerid, Paintball[2][playerid]);
PlayerPaintballScore[killerid] = KillP[killerid];
if(PlayerPaintballScore[killerid] > PaintballWinnerScore)
{
PaintballWinner = killerid;
PaintballWinnerScore = PlayerPaintballScore[killerid];
foreach(Player,i)
{
if(IsPlayerConnected(i))
{
if(PlayerPaintballing[i] != 0)
{
format(pinfo,sizeof(pinfo),"Lead is %s with %d kills.",GetName(PaintballWinner),PaintballWinnerSc ore);
TextDrawSetString(Paintball[1][i], pinfo);
TextDrawShowForPlayer(i, Paintball[1][i]);
}
}
}
}
If it was a problem in gamemode the pawno compilation would give me the error.
@Larry, check what i wrote earlier, it didn't help with nativechecker.
{
SendDeathMessageToPlayer(killerid, killerid, playerid, reason);
SendDeathMessageToPlayer(playerid, killerid, playerid, reason);
format(string, sizeof(string), "{ffc000}[Paintball]: You killed %s.",GetName(playerid));
SendClientMessage(killerid, COLOR_WHITE, string);
format(string, sizeof(string), "{ffc000}[Paintball]: You were killed by %s.",GetName(killerid));
SendClientMessage(playerid, COLOR_WHITE, string);
new pinfo[128];
KillP[killerid]++;
format(pinfo,sizeof(pinfo),"You have %d kills and %d deaths.", KillP[killerid],DeathP[killerid]);
TextDrawSetString(Paintball[2][killerid], pinfo);
TextDrawShowForPlayer(killerid, Paintball[2][killerid]);
DeathP[playerid]++;
format(pinfo,sizeof(pinfo),"You have %d kills and %d deaths.", KillP[playerid],DeathP[playerid]);
TextDrawSetString(Paintball[2][playerid], pinfo);
TextDrawShowForPlayer(playerid, Paintball[2][playerid]);
PlayerPaintballScore[killerid] = KillP[killerid];
if(PlayerPaintballScore[killerid] > PaintballWinnerScore)
{
PaintballWinner = killerid;
PaintballWinnerScore = PlayerPaintballScore[killerid];
foreach(Player,i)
{
if(IsPlayerConnected(i))
{
if(PlayerPaintballing[i] != 0)
{
format(pinfo,sizeof(pinfo),"Lead is %s with %d kills.",GetName(PaintballWinner),PaintballWinnerSc ore);
TextDrawSetString(Paintball[1][i], pinfo);
TextDrawShowForPlayer(i, Paintball[1][i]);
}
}
}
}
If it was a problem in gamemode the pawno compilation would give me the error.
@Larry, check what i wrote earlier, it didn't help with nativechecker.