Hmm, getting error when trying to add a command.
#1

Hello.

When i try to add a command in my Gamemode i will get 2 errors.

Code:
C:\Documents and Settings\Microsoft.KODUARVU-6442CC\Desktop\SG\gamemodes\SSM.pwn(1963) : error 010: invalid function or declaration
C:\Documents and Settings\Microsoft.KODUARVU-6442CC\Desktop\SG\gamemodes\SSM.pwn(1966) : error 010: invalid function or declaration
Here are the lines:

Quote:

Line 1963 - if (strcmp("/help", cmdtext, true, 10) == 0)
Line 1966 - return 1;

And this is the full cmd

Code:
if (strcmp("/help", cmdtext, true, 10) == 0)
{
	SendClientMessage(playerid,0xFFFF00AA, "Teleports: /stunt1, /stunt2, /pipe1, /home");
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)