14.08.2011, 18:43
pawn Код:
YCMD:gps(playerid, params[], help)
{
#pragma unused params
if (help) return SendClientMessage(playerid, -1, "Help:");
new stringaz[256];
new stringaz2[128];
for(new i=0;i<=100; i++)
{
format(stringaz2,sizeof(stringaz2),"%d.%s",i,gps_name[i]);
if(i!=100)
strins(stringaz,"\n",strlen(stringaz),sizeof(stringaz));
}
ShowPlayerDialog(playerid,GPSDIALOG,DIALOG_STYLE_LIST,"Place",stringaz,"Go","Close");
return 1;
}