SA-MP Forums Archive
4 Errors help [rep+] - 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)
+--- Thread: 4 Errors help [rep+] (/showthread.php?tid=330202)



4 Errors help [rep+] - M16 - 31.03.2012

help please


errors line
Quote:

if(PlayerInfo[playerid][pstate] == PLAYER_STATE_DRIVER && PBoolInfo[playerid][7] == true && vtype != VTYPE_BMX );

errors
Quote:

C:\Documents and Settings\Administrateur\Bureau\\gamemodes\.pwn(266 : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\\gamemodes\.pwn(266 : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Administrateur\Bureau\\gamemodes\.pwn(266 : error 036: empty statement
C:\Documents and Settings\Administrateur\Bureau\\gamemodes\.pwn(266 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.




Re: 4 Errors help [rep+] - Jonny5 - 31.03.2012

try it like this if this dont work post more of the code above this line

pawn Код:
if((PlayerInfo[playerid][pstate] == PLAYER_STATE_DRIVER) && (PBoolInfo[playerid][7]) && (vtype != VTYPE_BMX) );



Re: 4 Errors help [rep+] - Kiets - 31.03.2012

Try this
Код:
if(PlayerInfo[playerid][pstate] == PLAYER_STATE_DRIVER && PBoolInfo[playerid][7] == true && vtype != VTYPE_BMX)



Re: 4 Errors help [rep+] - introzen - 31.03.2012

pawn Код:
if(PlayerInfo[playerid][pstate] == PLAYER_STATE_DRIVER && PBoolInfo[playerid][7] == true && vtype != VTYPE_BMX )
the "if" statement can't end with a ";"


Re : 4 Errors help [rep+] - M16 - 31.03.2012

More !!
Quote:

C:\Documents and Settings\Administrateur\Bureau\MLRP\gamemodes\rwgt a.pwn(266 : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\MLRP\gamemodes\rwgt a.pwn(3171) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\MLRP\gamemodes\rwgt a.pwn(4854) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\MLRP\gamemodes\rwgt a.pwn(4854) : warning 215: expression has no effect
C:\Documents and Settings\Administrateur\Bureau\MLRP\gamemodes\rwgt a.pwn(4854) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrateur\Bureau\MLRP\gamemodes\rwgt a.pwn(4854) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\MLRP\gamemodes\rwgt a.pwn(4854) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Quote:

if(DmgDif > 41.0 && VTYPE != VTYPE_AIR && VTYPE != VTYPE_BIKE && VTYPE != VTYPE_BMX)

Quote:

if(VTYPE != VTYPE_BMX & VehicleInfo[vehicleid][vSpeed] == 0)




Re: 4 Errors help [rep+] - introzen - 31.03.2012

Link more of the script please. And the definitions of "VTYPE_AIR,BIKE,BMX" and so on.