[Help] Radio chat
#1

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;
		}
Reply
#2

What do you want to do?
Reply
#3

i guess some radio chatting?
Reply
#4

What? Do you get errors when you compile or...?
Reply
#5

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

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

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
Reply
#8

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;
        }

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)