small problem with dcmd : /
#1

Код:
this is my code :

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(test, 4, cmdtext);
return 0;
}

dcmd_test(playerid, params[])

{
     #pragma unused params
  new pname[24], string[128];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(string, sizeof(string), "%s is PRO!", pname);
  SendClientMessage(playerid, 0x00FF00AA, "this was a test");
  SendClientMessageToAll(0x00FF00AA, string);
  return 1;
}

{
	dcmd(seafun, 6, cmdtext);
	return 0;
}

dcmd_seafun(playerid, params[])

{
		#pragma unused params
	SetPlayerPos(playerid, 2450.2224, -1788.5258, 458.3834);
	new pname[24], string[128];
	GetPlayerName(playerid, pname, sizeof(pname));
	format(string, sizeof(string), "[Teleport] %s Has gone to /seafun", pname);
	SendClientMessage(playerid, 0x00FF00AA, "You have teleported to seafun.");
	SendClientMessageToAll(0x00FF00AA, string);
	return 1;

}
ERRORS:
C:\Users\user\Desktop\SA-MP Server Unreal Stuntages\Stunt City\gamemodes\testdcmd.pwn(728) : error 055: start of function body without function header
C:\Users\user\Desktop\SA-MP Server Unreal Stuntages\Stunt City\gamemodes\testdcmd.pwn(729) : error 010: invalid function or declaration
C:\Users\user\Desktop\SA-MP Server Unreal Stuntages\Stunt City\gamemodes\testdcmd.pwn(730) : error 010: invalid function or declaration
C:\Users\user\Desktop\SA-MP Server Unreal Stuntages\Stunt City\gamemodes\testdcmd.pwn(896) : warning 203: symbol is never used: "dcmd_seafun"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
LINE 728:
Код:
{
LINE 729:
Код:
	dcmd(seafun, 6, cmdtext);
LINE 730:
Код:
return 0;
LINE 896:
Код:
(Nothing there gm ends at 895)
someone help?
Reply


Messages In This Thread
small problem with dcmd : / - by [mad]MLK - 22.08.2009, 05:12
Re: small problem with dcmd : / - by Joe Staff - 22.08.2009, 05:19
Re: small problem with dcmd : / - by NeRoSiS - 22.08.2009, 05:28
Re: small problem with dcmd : / - by [mad]MLK - 22.08.2009, 05:41
Re: small problem with dcmd : / - by refshal - 22.08.2009, 05:52
Re: small problem with dcmd : / - by [mad]MLK - 22.08.2009, 05:55
Re: small problem with dcmd : / - by [mad]MLK - 22.08.2009, 15:55

Forum Jump:


Users browsing this thread: 3 Guest(s)