Help me with xgoto
#1

Hello, someone can tell me why i get these errors?
Код:
C:\Documents and Settings\Reinis\Desktop\Reinis\GTA\xxxxx\filterscripts\xgoto.pwn(44) : error 017: undefined symbol "dcmd_xgoto"
C:\Documents and Settings\Reinis\Desktop\Reinis\GTA\xxxxx\filterscripts\xgoto.pwn(45) : error 017: undefined symbol "dcmd_xgoto"
C:\Documents and Settings\Reinis\Desktop\Reinis\GTA\xxxxx\filterscripts\xgoto.pwn(48) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
My code is this:
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <sscanf>
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif



public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(xgoto, 5, cmdtext);
dcmd_xgoto(playerid, params[])
{
    new Float:x, Float:y, Float:z;
    if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "USE: \"/xgoto <X Float> <Y Float> <Z Float>\"");
    else
    {
      new string[64];
      SetPlayerPos(playerid, x, y, z);
      format(string, sizeof(string), "You've set your coord to %f, %f, %f", x, y, z);
      SendClientMessage(playerid, 0xFFFFFFFF, string);
    }
}
return 0;
}
Reply


Messages In This Thread
Help me with xgoto - by Negat1Ve - 22.01.2011, 20:36
Re: Help me with xgoto - by veyron - 22.01.2011, 20:52
Re: Help me with xgoto - by Negat1Ve - 22.01.2011, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)