OOC Command, (Out of Character, /o)
#6

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp(cmdtext,"/ooc",true)) //If the text starts with a '$', it'll send OOC.
  {
    new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, sizeof pName);
    format(string,sizeof string,"[OOC] %s: %s",pName, text[5]);
    SendClientMessageToAll(0x0000ffff,string);
    return 1;
  }
  return 0;
}
Didn't test it though.
pawn Код:
format(string,sizeof string,"[OOC]%s: %s",pName, text[5]);
That code gives me these errors,
Код:
C:\Users\BooNii3\Geramia RP\LV-RP\gamemodes\New!.pwn(159) : error 017: undefined symbol "text"
C:\Users\BooNii3\Geramia RP\LV-RP\gamemodes\New!.pwn(159) : warning 215: expression has no effect
C:\Users\BooNii3\Geramia RP\LV-RP\gamemodes\New!.pwn(159) : error 001: expected token: ";", but found "]"
C:\Users\BooNii3\Geramia RP\LV-RP\gamemodes\New!.pwn(159) : error 029: invalid expression, assumed zero
Reply


Messages In This Thread
OOC Command, (Out of Character, /o) - by Luis_Leone - 30.07.2010, 17:14
Re: OOC Command - by ViruZZzZ_ChiLLL - 30.07.2010, 17:16
Re: OOC Command, (Out of Character, /o) - by Hiddos - 30.07.2010, 17:20
Re: OOC Command, (Out of Character, /o) - by Luis_Leone - 30.07.2010, 17:23
Re: OOC Command, (Out of Character, /o) - by Hiddos - 30.07.2010, 17:26
Re: OOC Command, (Out of Character, /o) - by Luis_Leone - 30.07.2010, 17:29
Re: OOC Command, (Out of Character, /o) - by Hiddos - 30.07.2010, 17:31
Re: OOC Command, (Out of Character, /o) - by Kar - 30.07.2010, 17:34
Re: OOC Command, (Out of Character, /o) - by Luis_Leone - 30.07.2010, 17:34
Re: OOC Command, (Out of Character, /o) - by Kar - 30.07.2010, 17:36

Forum Jump:


Users browsing this thread: 2 Guest(s)