Command /locations does not work
#1

Script code:


COMMAND:locations(playerid, params[])
{
new user;
if(sscanf(params, "u", user))
if(user == INVALID_PLAYER_ID) sscanf(params, "i", user);
if(user > MAX_PLAYERS) user = DeterminePlayerID(user);
PlayerInfo[playerid][pShowtheway_ID] = user;
format(gVar3000, sizeof(gVar3000), "%s", EOS);
for(new i = 0; i != sizeof(Locs); i++)
{
if(isnull(gVar3000)) format(gVar3000, sizeof(gVar3000), "%s", Locs[i][locName]);
else format(gVar3000, sizeof(gVar3000), "%s\n%s", gVar3000, Locs[i][locName]);
}
ShowPlayerDialog(playerid, DIALOG_SHOW_LOCATIONS, DIALOG_STYLE_LIST, "{FF9900}Locatii", gVar3000, "Mark", "Cancel");
return format(gVar3000, sizeof(gVar3000), "%s", EOS);

}


When you give /locations, load everything but do not appear checkpoint on the map.
Reply


Messages In This Thread
Command /locations does not work - by heNq - 08.06.2015, 09:04
Re: Command /locations does not work - by JaydenJason - 08.06.2015, 09:46
Re: Command /locations does not work - by heNq - 08.06.2015, 10:07
Re: Command /locations does not work - by heNq - 08.06.2015, 10:09
Re: Command /locations does not work - by JaydenJason - 08.06.2015, 10:10
Re: Command /locations does not work - by heNq - 08.06.2015, 10:17

Forum Jump:


Users browsing this thread: 1 Guest(s)