Few Minor Questions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Few Minor Questions (
/showthread.php?tid=338746)
Few Minor Questions -
Blessed - 30.04.2012
Im confused by what this means, as far as I can see, this should work. Ive also tried this without adding OnPlayerConnect and OnPlayerDeath...
Re: Few Minor Questions -
Ryandacod6 - 01.05.2012
Its saying:
You have already defined GivePlayerMoney and SendClientMessage, you have already told it what to do.
Also, its saying that the arguments (EXAMPLE,EXAMPLE2) do not match what you defined them to do.
The arguments for OnPlayerDeath are invalid.
Re: Few Minor Questions -
Blessed - 01.05.2012
Okay... but if I erase GivePlayerMoney, and SendClientMessage, it's not going to know what to do...
Re: Few Minor Questions -
TheDominator - 01.05.2012
pawn Code:
public OnPlayerConnect(playerid)
{
GivePlayerMoney(playerid, 99999);
return 1;
}
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid, 0xFFFF00AA, "You died bitch!");
SendClientMessage(playerid, 0xFFFF00AA, "You've been transported to the nearest hospital!");
return 1;
}
Re: Few Minor Questions -
Blessed - 01.05.2012
Thank you, a lot.
Re: Few Minor Questions -
TheDominator - 01.05.2012
Quote:
Originally Posted by Blessed
Thank you, a lot.
|
No problem, it's easy to make those kind of mistakes