SA-MP Forums Archive
Help with minigames script - 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: Help with minigames script (/showthread.php?tid=65914)



Help with minigames script - yelkreb - 17.02.2009

Hello! I am having trouble with a minigame script...

Here be the script: http://www.mediafire.com/download.php?ojnmmemznnf

So here's what I need:So yeah, those are the things I need to be fixed and I would really appreciate someone's help.

Thanks in advance


Re: Help with minigames script - Mikep - 17.02.2009

For the first one, use a variable.


Re: Help with minigames script - yelkreb - 17.02.2009

I appreciate your reply but since I'm a beginner in scripting I don't know how to start a variable. Can you please help me more?


Re: Help with minigames script - yelkreb - 17.02.2009

Anyone please? This topic is getting lost but I seriously need the changes


Re: Help with minigames script - whooper - 17.02.2009

pawn Код:
new yourvariable[MAX_PLAYERS];



Re: Help with minigames script - yelkreb - 18.02.2009

Quote:
Originally Posted by whooper
pawn Код:
new yourvariable[MAX_PLAYERS];
Yeah, I add it and what's next?
pawn Код:
new commands[MAX_PLAYERS];



Re: Help with minigames script - DutchDominator - 18.02.2009

I'd rather do:

Код:
new IsInMinigame[MAX_PLAYERS]
And, if someone joins a minigame, set it to 1. If that person then tries to use a command:

Код:
if( IsInMinigame[ playerid ]
{
  SendClientMessage( playerid, COLOR_GREEN, "Error: You can't use commands while in a Minigame" );
  return 1;
}
@ 2 I don't understand your problem

@ 3:

Код:
SetPlayerVirtualWorld playerid, 0 );
SetPlayerInterior( playerid, 0 );
Btw, I made that Minigame script :')

But there are some bugs in it Although I fixed them, I'm too lazy to release a new version D:


Re: Help with minigames script - yelkreb - 18.02.2009

Hey DutchDominator, thanks for your reply and thanks for making this script too! I'll try the 1st and 3rd but on 2nd I meant that the car health at derby looks like 200, it takes forever to ram and car take damage. And I'd like to see the updated script aswell.

So how can I make derby's cars to health 10?

And it gives me 2 errors:

C:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\minigames.pwn(47) : error 001: expected token: ";", but found "new"
C:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\minigames.pwn(876) : error 001: expected token: ")", but found "{"

Can you try compiling it yourself please?


Re: Help with minigames script - DutchDominator - 18.02.2009

Well, if you don't post the code, I can't see what's wrong with it. Use pastebin.com


Re: Help with minigames script - yelkreb - 18.02.2009

http://pastebin.com/f1bfd0d4c