Tried to add this, but...
#1

I tried to make this, and I am using yRace system.

pawn Код:
if(CallRemoteFunction("IsPlayerInRace", "i", playerid))
        {
            if(EnableBoast[playerid] = 0) //This is the line which causes error
        }
        else
        {
            if(EnableBoast[playerid] = 1)
        }
    return 1;
    }
Errors:
Код:
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(115) : warning 211: possibly unintended assignment
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(116) : error 029: invalid expression, assumed zero
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(116 -- 117) : warning 215: expression has no effect
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(117) : error 001: expected token: ";", but found "else"
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(119) : warning 211: possibly unintended assignment
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(120) : error 029: invalid expression, assumed zero
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(120 -- 121) : warning 215: expression has no effect
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(121) : error 001: expected token: ";", but found "return"
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(121) : warning 217: loose indentation
C:\Users\Kelvin\Desktop\Scripting\filterscripts\boost.pwn(123) : error 030: compound statement not closed at the end of file (started at line 115)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

You're using if statement without scope. Remove the if statement.

Код:
if(EnableBoast[playerid] = 0)
to
Код:
EnableBoast[playerid] = 0
Do same for the below

@off
Xian, for me the server is offline ._.
Reply
#3

Yeah remove if
Reply
#4

Quote:
Originally Posted by Joao Pedro
Посмотреть сообщение
You're using if statement without scope. Remove the if statement.

Код:
if(EnableBoast[playerid] = 0)
to
Код:
EnableBoast[playerid] = 0
Do same for the below

@off
Xian, for me the server is offline ._.
It doesn't work.

@off
I just restarted the server.
Reply
#5

Right now, What are the problems?
Reply
#6

Quote:
Originally Posted by Joao Pedro
Посмотреть сообщение
Right now, What are the problems?
I can't explain here, it's too hard to explain here. Come in to the server and I will explain it to you.
Reply
#7

Right now, i'm on Linux : /
Reply
#8

I guess I can explain, I know how it happens.

Well, I am using yRace fliterscript.

First, you start a race, and /join, go to the CP.
Second, you type /ready, the races starts.
Last, you can use boost, all the time, from first to last. :X
Reply
#9

This could fix it?

Change:
pawn Код:
EnableBoast[playerid] = 0
To:
pawn Код:
EnableBoast[playerid] = 0;
Reply
#10

I added it earlier.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)