SA-MP Forums Archive
[Help] Radio chat - 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: [Help] Radio chat (/showthread.php?tid=100960)



[Help] Radio chat - aspire5630 - 07.10.2009

ok so far i have this, But its not working :S
i need something else?


Код:
		if (TEAM_COP[playerid] == 1)
		{
			if(!strlen(cmdtext[2])) return SendClientMessage(playerid, ORANGE, "[USAGE]: //<text>"), SendClientMessage(playerid, ORANGE, "HELP: Example: //Hi");
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "Admin [%i]%s: %s" ,playerid,sendername, cmdtext[2]);
			SendClientMessageToCop(DARKPINK, string, 1);
			return 1;
		}



Re: [Help] Radio chat - TheFailFactor - 07.10.2009

What do you want to do?


Re: [Help] Radio chat - Clank - 07.10.2009

i guess some radio chatting?



Re: [Help] Radio chat - Hiitch - 07.10.2009

What? Do you get errors when you compile or...?


Re: [Help] Radio chat - aspire5630 - 07.10.2009

Yes, need to make it into a radio chat? any help?


Re: [Help] Radio chat - Hiitch - 07.10.2009

If you get errors when you compile it, can you post them then?


Re: [Help] Radio chat - aspire5630 - 07.10.2009

Errors
Код:
C:\Users\Jordan\Desktop\stunt\filterscripts\Untitled.pwn(10) : error 017: undefined symbol "sendername"
C:\Users\Jordan\Desktop\stunt\filterscripts\Untitled.pwn(10) : error 017: undefined symbol "sendername"
C:\Users\Jordan\Desktop\stunt\filterscripts\Untitled.pwn(10) : error 029: invalid expression, assumed zero
C:\Users\Jordan\Desktop\stunt\filterscripts\Untitled.pwn(10) : fatal error 107: too many error messages on one line



Re: [Help] Radio chat - mirkoiz - 07.10.2009

Quote:
Originally Posted by aspire5630
Errors
Код:
C:\Users\Jordan\Desktop\stunt\filterscripts\Untitled.pwn(10) : error 017: undefined symbol "sendername"
C:\Users\Jordan\Desktop\stunt\filterscripts\Untitled.pwn(10) : error 017: undefined symbol "sendername"
C:\Users\Jordan\Desktop\stunt\filterscripts\Untitled.pwn(10) : error 029: invalid expression, assumed zero
C:\Users\Jordan\Desktop\stunt\filterscripts\Untitled.pwn(10) : fatal error 107: too many error messages on one line
do new
pawn Код:
new sendername[MAX_PLAYER_NAME];


pawn Код:
if (TEAM_COP[playerid] == 1)
        {
            if(!strlen(cmdtext[2])) return SendClientMessage(playerid, ORANGE, "[USAGE]: //<text>"),
SendClientMessage(playerid, ORANGE, "HELP: Example: //HI");
new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "Admin [%i]%s: %s" ,playerid,sendername, cmdtext[2]);
            SendClientMessageToCop(DARKPINK, string, 1);
            return 1;
        }