Race Script Help
#8

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.
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: 2 Guest(s)