How to SendClientMessageToAll When somebody does a teleport - 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: How to SendClientMessageToAll When somebody does a teleport (
/showthread.php?tid=73541)
How to SendClientMessageToAll When somebody does a teleport -
aspire5630 - 16.04.2009
Ok, i have this for when somebody teleports
Код:
if (strcmp("/Track1", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 3409.8455,-1482.6224,2.2038);
SendClientMessageToAll(playerid, RED,"[%s]: Has Done >> /Track1 << Why Not Join Him?");
return 1;
But i get a error saying...
C:\Users\Jj\Desktop\My stunt server\gamemodes\kontrolNEW.pwn(455) : error 035: argument type mismatch (argument 2)
anyone know whats wrong?
Re: How to SendClientMessageToAll When somebody does a teleport -
ReV. - 16.04.2009
pawn Код:
if (strcmp("/Track1", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 3409.8455,-1482.6224,2.2038);
new string[50];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,18);
format(string, sizeof(string), "[%s]: Has Done >> /Track1 << Why Not Join Him?",name);
SendClientMessageToAll(YELLOW,string);
return 1;
}
EDIT: Defined string.