Run time error 19 - HELP please
#6

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.
Reply


Messages In This Thread
Run time error 19 - HELP please - by EvilSeph - 10.08.2014, 15:10
Re: Run time error 19 - HELP please - by Stinged - 10.08.2014, 15:13
Re: Run time error 19 - HELP please - by EvilSeph - 10.08.2014, 15:19
Re: Run time error 19 - HELP please - by Steel_ - 10.08.2014, 15:23
Re: Run time error 19 - HELP please - by LarryTiger - 10.08.2014, 15:25
Re: Run time error 19 - HELP please - by EvilSeph - 10.08.2014, 15:25
Re: Run time error 19 - HELP please - by EvilSeph - 10.08.2014, 15:34

Forum Jump:


Users browsing this thread: 1 Guest(s)