SA-MP Forums Archive
Any help please? [NOT RESOLVED] - 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: Any help please? [NOT RESOLVED] (/showthread.php?tid=129107)



Any help please? [NOT RESOLVED] - Moglizorz. - 20.02.2010

Basically if I go into the checkpoint and select a car, nothing happens
Any help?

Thanks in advance,
Mowgli

Quote:

if(dialogid == 8 && response)
{
new buyername[24];
GetPlayerName(playerid,buyername, 24);
switch(listitem)
{

case 0: // Sultan
{
if(GetPlayerMoney(playerid) <= 39999) {
SendClientMessage(playerid, 0xA9A9A9AA, "Vehicle Purchase Failed");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Sultan car ($40000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(560, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "Vehicle Purchased");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Sultan vehicle from the Grotti Car Showroom for $40000");
GivePlayerMoney(playerid,-40000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Sultan car from AutoBahn ($40000)",buyername,playerid);
}



Re: Any help please? - Moglizorz. - 20.02.2010

Bump :P
Anyone? :S


Re: Any help please? [NOT RESOLVED] - Moglizorz. - 21.02.2010

Bump.


Re: Any help please? [NOT RESOLVED] - Eazy_Efolife - 21.02.2010

Debug your code.