I failed at a script, Need some help - 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: I failed at a script, Need some help (
/showthread.php?tid=90257)
I failed at a script, Need some help -
misterw - 07.08.2009
Hello samp forums.
I have some problems with a little piece of script, Its probably a noob mistake, but well
Код:
if(pickupid == M1Start) {
SendClientMessage(playerid, COLOR_YELLOW, "You enter the pub and hear someone shouting your name.");
SendClientMessage(playerid, COLOR_RED, "Fixer: Lets Keep it short, I want you to bomb Otto's autos, The bombs are placed infront of the dealer");
M1st = CreatePickup(1313, 3, -1640.1226,1202.9473,7.2342);
return 1;
}
if(pickupid == M1st) {
SendClientMessage(playerid, COLOR_YELLOW, "You have picked up some bombs, Go inside");
m1p1 = CreatePickup(1313, 3, -1657.2209,1221.6830,13.6719);
return 1;
}
if(pickupid == m1p1) {
m1p2 = CreatePickup(1313, 3,-1669.0729,1211.9907,13.6719);
return 1;
}
if(pickupid == m1p2) {
m1p3 = CreatePickup(1313, 3,-1657.2643,1210.2029,21.1563);
return 1;
}
if(pickupid == m1p3) {
m1p4 = CreatePickup(1313, 3,-1613.4955,1230.0406,7.0468);
return 1;
}
if(pickupid == m1p4) {
GivePlayerMoney(playerid, 50000);
SendClientMessage(playerid, COLOR_WHITE, "You've completed mission 1, Heres your cash");
CreateExplosion(-1669.0729,1211.9907,13.6719, 7,300);
CreateExplosion(-1657.2643,1210.2029,21.1563,3,300);
CreateExplosion(-1613.4955,1230.0406,7.0468,3,300);
return 1;
}
I haven't been scripting for a while, But I hope somebody can fix this.
Thanks in advance,
Dutchey Aka Rabbit
Re: I failed at a script, Need some help -
kc - 07.08.2009
If you don't tell us the problem, then we can't help you.
Re: I failed at a script, Need some help -
misterw - 07.08.2009
Well, the 3rd etc pickup doesn't show...
I want to pickups to show AFTER the pickup before it has been picked up,
and that doesn't work