29.08.2012, 11:16
pawn Код:
ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "GPS:", gpsstr, "Choose", "Cancel");
FIXED sscanf
pawn Код:
dcmd_v(playerid,params[])
{
#pragma unused params
new vehid;
new color1;
new color2;
if(sscanf(params,"iii",vehid,color1,color2)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /v [vehicleid] [color1] [color2]");
new Float:x,Float:y,Float:z,Float:ang;
GetPlayerFacingAngle(playerid,ang);
GetPlayerPos(playerid,x,y,z);
CreateVehicle(vehid,x+1,y+1,z+1,ang,color1,color2,60);
return 1;
}