[HELP!] MOTD - weird error
#1

Aight guys

I got this on top:
Код:
new motd[128];
Then - at OnPlayerConnect:
Код:
  motd = "|Server MOTD:: SA:MP 0.3 is here and it pwns.|";
	SendClientMessage(playerid, COLOR_GREEN, motd);
And as a command -


Код:
	if(strcmp(cmdtext, "/setmotd", true) == 0)
	{
	  if(IsPlayerAdmin(playerid))
	  {
    if(!cmdtext[8])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /setmotd [message]");
    motd = cmdtext[8];
    return 1;
    }
    else
		{
		SendClientMessage(playerid,COLOR_RED,"You are not an RCON admin!");
		}
	}
Why do I get this error?

error 033: array must be indexed (variable "motd")
Reply


Messages In This Thread
[HELP!] MOTD - weird error - by Striker_Moe - 18.10.2009, 12:57
Re: [HELP!] MOTD - weird error - by SpiderPork - 18.10.2009, 13:05
Re: [HELP!] MOTD - weird error - by Striker_Moe - 18.10.2009, 13:10
Re: [HELP!] MOTD - weird error - by MenaceX^ - 18.10.2009, 13:13
Re: [HELP!] MOTD - weird error - by Striker_Moe - 18.10.2009, 13:14
Re: [HELP!] MOTD - weird error - by MenaceX^ - 18.10.2009, 13:21
Re: [HELP!] MOTD - weird error - by Striker_Moe - 18.10.2009, 13:57
Re: [HELP!] MOTD - weird error - by woot - 18.10.2009, 14:21
Re: [HELP!] MOTD - weird error - by SpiderPork - 18.10.2009, 14:54
Re: [HELP!] MOTD - weird error - by dice7 - 18.10.2009, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)