weird.. errors
#1

pawn Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3112) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : error 001: expected token: ")", but found "if"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : warning 215: expression has no effect
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : warning 217: loose indentation
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

pawn Код:
3112 ={
      3113 =      if(gTeam[playerid] == TEAM_CIVILIAN)
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        if((GetVehicleModel(GetPlayerVehicleID(playerid)) == 497 || (GetVehicleModel(GetPlayerVehicleID(playerid)) == 596||(GetVehicleModel(GetPlayerVehicleID(playerid)) == 597 ||(GetVehicleModel(GetPlayerVehicleID(playerid)) == 598 ||(GetVehicleModel(GetPlayerVehicleID(playerid)) == 599)
        {
            if(gTeam[playerid] == TEAM_CIVILIAN)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid,COLOR_RED,"You are not part of the Los Santos Police Department. Only Polce Officer's May Enter This Vehicle");
            }
            else if(gTeam[playerid] != TEAM_COP)
            {
                SendClientMessage(playerid,COLOR_RED,"lol");
            }
        }
    }
Reply
#2

Forgot and misplaced many ')'

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 497 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 596|| GetVehicleModel(GetPlayerVehicleID(playerid)) == 597 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 598 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 599)
Reply
#3

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 497 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 596||GetVehicleModel(GetPlayerVehicleID(playerid)) == 597 ||GetVehicleModel(GetPlayerVehicleID(playerid)) == 598 ||GetVehicleModel(GetPlayerVehicleID(playerid)) == 599)
{
Aww, Cuervo_Negro beat me to it.
Reply
#4

lol thankyou i failed epicy on that one<.<
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)