CMD:gotoloc Needed
#6

pawn Код:
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
pawn Код:
CMD:gotoloc(playerid, params[])
{
    if (isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /gotoloc [LOCATION]");
   
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "To view all locations available, You may use /locations!");
    if(!strcmp(params, "fc", true))
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid,-193.1042,1002.7148,19.7789);
        SendClientMessage(playerid, COLOR_WHITE, " You have been teleported to Fort Carson.");

    }
    else if(!strcmp(params, "dmv", true))
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos(playerid,-92.4281,1090.8228,19.7422);
        SendClientMessage(playerid, COLOR_WHITE, " You have been teleported to the DMV.");

    }
return 1;
}
------------
Quote:

The script gives me no error, but the Gamemode becomes UNKNOWN

You probably didn't COPY/PASTE Everything in the right directories (sscanf folder, sscanf plugin and sscanf2.INC)
Also don't forget to add: "plugins sscanf" in your server cfg
Reply


Messages In This Thread
CMD:gotoloc Needed - by Jigsaw123 - 27.08.2014, 21:29
Re: CMD:gotoloc Needed - by Twizted - 27.08.2014, 21:31
Re: CMD:gotoloc Needed - by Jigsaw123 - 27.08.2014, 21:40
Re: CMD:gotoloc Needed - by R4PlaY - 27.08.2014, 21:52
Re: CMD:gotoloc Needed - by Jigsaw123 - 27.08.2014, 21:59
Re: CMD:gotoloc Needed - by Sarra - 27.08.2014, 22:09

Forum Jump:


Users browsing this thread: 2 Guest(s)