/me in a /do
#6

Quote:

C:\Users\Mijn pc\Desktop\runescape priv\Server\gamemodes\test.pwn(103) : error 030: compound statement not closed at the end of file (started at line 81)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

(lines 81 untill 102)

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
{
if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(0xFFFF00AA, str);
return 1;
}

if(!strcmp(cmdtext, "/do", true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* [DO] %s", cmdtext[128]);
SendClientMessageToAll(0xFFFF00AA, str);
return 1;
}
return 0;

Reply


Messages In This Thread
/me in a /do - by davelord - 10.02.2011, 21:27
Re: /me in a /do - by davelord - 10.02.2011, 21:28
Re: /me in a /do - by DevilG - 10.02.2011, 21:31
Re: /me in a /do - by Memoryz - 10.02.2011, 21:31
Re: /me in a /do - by BMUK - 10.02.2011, 21:32
Re: /me in a /do - by davelord - 10.02.2011, 21:36
Re: /me in a /do - by BMUK - 10.02.2011, 21:39
Re: /me in a /do - by davelord - 10.02.2011, 21:41
Re: /me in a /do - by davelord - 10.02.2011, 21:43
Re: /me in a /do - by Antonio [G-RP] - 10.02.2011, 21:46

Forum Jump:


Users browsing this thread: 1 Guest(s)