Dialog help.Tunned car spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog help.Tunned car spawn (
/showthread.php?tid=135725)
Dialog help.Tunned car spawn -
Zh3r0 - 21.03.2010
Well, i wanted to make myself a dialog with tunned vehicles, but whenever i click the button nothings shows up, except for the text saying i bought nothing for money...
pawn Код:
case 0:
{
new ELEGY;
TogglePlayerControllable(playerid, 1);
if (GetPlayerMoney(playerid) >= 14900)
{
TogglePlayerControllable(playerid, 1);
GivePlayerMoney(playerid, -14900);
ELEGY = CreateVehicle(562, XX2, YY2, ZZ2 + 2.0, AA2 + 90.0, -1, -1, 5000);
LinkVehicleToInterior(ELEGY, GetPlayerInterior(playerid));
ChangeVehiclePaintjob(ELEGY,random(2)+1);
AddVehicleComponent(ELEGY,1037);
AddVehicleComponent(ELEGY,1010);
AddVehicleComponent(ELEGY,1035);
AddVehicleComponent(ELEGY,1039);
AddVehicleComponent(ELEGY,1041);
AddVehicleComponent(ELEGY,1086);
AddVehicleComponent(ELEGY,1087);
AddVehicleComponent(ELEGY,1147);
AddVehicleComponent(ELEGY,1148);
AddVehicleComponent(ELEGY,1172);
SendClientMessage(playerid, COLOR_YELLOW, "[SUCCES]> You bought a pimped Elegy for 14900");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You don't have enough moneys! You need 14900$.");
return 1;
}}
I got this on top
pawn Код:
new Float:XX2;
new Float:YY2;
new Float:ZZ2;
new Float:AA2;
Sorry for identation, pawn codes messed it up.
HELP WILL BE VERY VERY APPRECIATED! :P