[FilterScript] GPS system by Tika Spic (dock)
#6

pawn Код:
dcmd_gps(playerid,params[])
{
        #pragma unused params
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "[GPS]:You must be in a vehicle to use this command.");
        if(IsPlayerInAnyVehicle(playerid))
        {
          SendClientMessage(playerid, COLOR_GREEN,"[GPS]:You have turned on your GPS.");
          ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "GPS:", gpsstr, "Choose", "Cancel");
        }
        return 1;
}
No compiling error, but Dialog doesn't seem to be working.

EDIT: You also forgot to add
pawn Код:
GPS_Activated[playerid] = 1;
under GPS Command.
and ResetVariable.
Reply


Messages In This Thread
GPS system by Tika Spic (dock) - by Tika Spic - 25.08.2012, 21:51
Re: GPS system by Tika Spic (dock) - by Deron_Green - 26.08.2012, 01:07
Re: GPS system by Tika Spic (dock) - by Tika Spic - 26.08.2012, 09:26
Re: GPS system by Tika Spic (dock) - by karim29 - 26.08.2012, 09:29
Re: GPS system by Tika Spic (dock) - by DeadLy™ - 26.08.2012, 09:32
Re: GPS system by Tika Spic (dock) - by Kh4led - 26.08.2012, 10:41

Forum Jump:


Users browsing this thread: 2 Guest(s)