SA-MP Forums Archive
Does not match definition - 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: Does not match definition (/showthread.php?tid=112426)



Does not match definition - (Jeff) - 07.12.2009

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new pname;
  pname = GetPlayerName(playerid);
  SendClientMessageToAll(COLOR_RED,"%s left the fun",pname);
    return 1;
}
gives me tons of errors, i haven't scripted in a few months.
Also these:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  SendClientMessageToAll(COLOR_ORANGE,"%s killed %s", killerid, playerid);
  SpawnPlayer(playerid);
    return 1;
}
same errors


Re: Does not match definition - Correlli - 07.12.2009

Learn how to use GetPlayerName-function,
and learn how to format messages before you send them with SA:MP message functions.


Re: Does not match definition - (Jeff) - 07.12.2009

Quote:
Originally Posted by Don Correlli
Learn how to use GetPlayerName-function,
and learn how to format messages before you send them with SA:MP message functions.
omfg , thanks man (like i said, i haven't scripted in a loong time).