Need some help... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Need some help... (
/showthread.php?tid=135717)
Need some help... -
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
Re: Need some help... -
Las Venturas CNR - 21.03.2010
Shouldn't this be
HERE?
Re: Need some help... -
Zh3r0 - 21.03.2010
Quote:
Originally Posted by World War III
|
Really?
Well, i'm an old member, just came back and as far as i knew, this was the section for help, but thanks for reminding
Re: Need some help... -
Las Venturas CNR - 21.03.2010
Yes
, it should be in scripting discussion I believe since Dialogs have to do with scripting. Your welcome, rofl.