Need help with something very simple.... - 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: Need help with something very simple.... (
/showthread.php?tid=216417)
Need help with something very simple.... -
OldDirtyBastard - 25.01.2011
pawn Код:
new Float:score;
GetPlayerScore(killerid, score);
if(score == 1)
{
GameTextForPlayer(killerid,"~r~> first blood! <",3000,5);
}
It should not be very hard to find out what this should be
The version i present isnt working since its incorrect.
Basicly after connecting the first kill should display the gametext.
Im stuck with this, can anyone help me out?
Thanks, regards.
Re: Need help with something very simple.... -
Vince - 25.01.2011
Yah, score is not a float.
Re: Need help with something very simple.... -
OldDirtyBastard - 25.01.2011
With float or not, im getting the error by the GetPlayerScore line.
Re: Need help with something very simple.... -
Mikkel_Pedersen - 25.01.2011
Maybe it was an idea to show what errors you get?
Re: Need help with something very simple.... -
OldDirtyBastard - 25.01.2011
Код:
(761) : warning 202: number of arguments does not match definition
761 is the GetPlayerScore line.
Re: Need help with something very simple.... -
armyoftwo - 25.01.2011
pawn Код:
new score = GetPlayerScore(playerid);
Re: Need help with something very simple.... -
OldDirtyBastard - 25.01.2011
Quote:
Originally Posted by armyoftwo
pawn Код:
new score = GetPlayerScore(playerid);
|
Looks like its ok, thanks