[Tutorial] How To Make simple GPS system
#7

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(gps,3,cmdtext);
return 0;
}
dcmd_gps(playerid, params[])
{
#pragma unused params
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,0xAFAFAFAA,"You're not in a vehicle");
return 1;
}
ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST,"GPS System","Locations,"Choose","Cancel");
SendClientMessage(playerid,COLOR_YELLOW,"To Cancel Gps use /gpsoff");
return 1;
return 1;
}

Wrong!, if you compile it, you would get atleast 1 error

pawn Code:
ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST,"GPS System","Locations","Choose","Cancel");
Check it out
Reply


Messages In This Thread
How To Make simple GPS system - by Patrick - 23.12.2012, 09:55
Re: How To Make simple GPS system - by DarkyTheAngel - 23.12.2012, 10:15
Re: How To Make simple GPS system - by Patrick - 23.12.2012, 10:33
Re: How To Make simple GPS system - by NicholasA - 23.12.2012, 11:05
Re: How To Make simple GPS system - by gtakillerIV - 23.12.2012, 12:20
Re: How To Make simple GPS system - by Patrick - 23.12.2012, 12:37
Re: How To Make simple GPS system - by [CG]Milito - 23.12.2012, 16:53
Re: How To Make simple GPS system - by Patrick - 24.12.2012, 16:49
Re: How To Make simple GPS system - by [CG]Milito - 27.12.2012, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)