SA-MP Forums Archive
Problem with GameTextForPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with GameTextForPlayer (/showthread.php?tid=215899)



Problem with GameTextForPlayer - New Ilyass - 24.01.2011

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	GameTextForPlayer(killerid, 2000$, 3000, 4);
	GameTextForPlayer(playerid, -1982$, 3000, 4);
	return 1;
}
C:\Documents and Settings\Sanaв\Bureau\SA-MP\gamemodes\lsgl.pwn(116) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Sanaв\Bureau\SA-MP\gamemodes\lsgl.pwn(116) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Sanaв\Bureau\SA-MP\gamemodes\lsgl.pwn(116) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Sanaв\Bureau\SA-MP\gamemodes\lsgl.pwn(116) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Problem with GameTextForPlayer - Rock18 - 24.01.2011

Try
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	GameTextForPlayer(killerid, 2000$, 3000);
	GameTextForPlayer(playerid, -1982$, 3000);
	return 1;
}



Re: Problem with GameTextForPlayer - New Ilyass - 24.01.2011

isn't work


Re: Problem with GameTextForPlayer - Rock18 - 24.01.2011

Sorry , my bad
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(killerid," 2000$, 6000",4);
GameTextForPlayer(playerid," -1982$, 3000",4);
return 1;
}



Re: Problem with GameTextForPlayer - ExeC - 24.01.2011

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    GameTextForPlayer(killerid, "2000$", 3000, 5);
    GameTextForPlayer(playerid, "-1982$", 3000, 5);
    return 1;
}