Race Script Help
#10

Quote:
Originally Posted by ikarus
Quote:
Originally Posted by Kyosaur!!
Quote:
Originally Posted by ikarus
Quote:
Originally Posted by Rac3r
Kyosaur!! means :
Код:
new RacePos;
Needs to be :
Код:
new RacePos[MAX_PLAYERS];
yes but if I put [MAX_PLAYERS] after RacePos, I get this:
Код:
F:\Street Racers And Drifters\filterscripts\Race.pwn(314) : error 022: must be lvalue (non-constant)
F:\Street Racers And Drifters\filterscripts\Race.pwn(314) : warning 215: expression has no effect
F:\Street Racers And Drifters\filterscripts\Race.pwn(439) : error 033: array must be indexed (variable "RacePos")
Line 314:
pawn Код:
RacePos ++;
Line 439:
pawn Код:
RacePos = 0;
You are way to inexperienced to be trying to code a race script mate (not trying to be a dick).

314 - RacePos[playerid]++;
439 - RacePos[playerid] = 0;

If playerid isnt available, you're going to have to make a for/loop to go through all the player ids.
Nice, but when I finish a race it says me: Position: 0 and it doesn't give me any money.
This is why i said your to inexperienced lol, the questions arent going to stop coming in lol (this is my last answer... i'm down to help, but this script is going to require way to much helping lol... at the end, its going to be like I built it -.-).

If it says zero, your clearing the variable to soon ? i dont have enough code to tell you why its messing up, im just taking a guess.

Reply


Messages In This Thread
Race Script Help - by [MWR]Blood - 20.03.2010, 15:27
Re: Race Script Help - by [MWR]Blood - 21.03.2010, 07:26
Re: Race Script Help - by jameskmonger - 21.03.2010, 07:35
Re: Race Script Help - by [MWR]Blood - 21.03.2010, 08:29
Re: Race Script Help - by Kyosaur - 21.03.2010, 08:35
Re: Race Script Help - by Rac3r - 21.03.2010, 08:41
Re: Race Script Help - by [MWR]Blood - 21.03.2010, 09:26
Re: Race Script Help - by Kyosaur - 21.03.2010, 09:33
Re: Race Script Help - by [MWR]Blood - 21.03.2010, 09:44
Re: Race Script Help - by Kyosaur - 21.03.2010, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)