2 errors
#1

pawn Код:
Z:\Users\lewismichaelbbc\Documents\Linux-Server\gamemodes\lewisrp.pwn(382) : warning 213: tag mismatch
Z:\Users\lewismichaelbbc\Documents\Linux-Server\gamemodes\lewisrp.pwn(383 -- 384) : error 001: expected token: ")", but found ";"
Here is the code:

pawn Код:
if(IsACopCar(vehicleid))
    {
        if(!PlayerInfo[playerid][pFaction] == 1) // Line 382  - Something wrong with this i think
        (
            SendClientMessage(playerid,COLOR_YELLOW, "You are not in the LSPD / FBI");
            RemovePlayerFromVehicle(playerid);
        }
        else
        {
            SendClientMessage(playerid, COLOR_YELLOW, "You have just entered a cop vehicle");
    }
Reply
#2

pawn Код:
if(!PlayerInfo[playerid][pFaction] == 1)
This is wrong, the exclamation is not supposed to be there. This is the correct way.

pawn Код:
if(PlayerInfo[playerid][pFaction] != 1)
This says if the player's faction does not equal 1 then continue the code.
Reply
#3

pawn Код:
if(!PlayerInfo[playerid][pFaction] == 1) // Line 382  - Something wrong with this i think
( // <-
It's
pawn Код:
if(!PlayerInfo[playerid][pFaction] == 1) // Line 382  - Something wrong with this i think
{ // <- "{"
Reply
#4

Quote:
Originally Posted by Dwane
Посмотреть сообщение
pawn Код:
if(!PlayerInfo[playerid][pFaction] == 1) // Line 382  - Something wrong with this i think
( // <-
It's
pawn Код:
if(!PlayerInfo[playerid][pFaction] == 1) // Line 382  - Something wrong with this i think
{ // <- "{"
Holy shit, you have a good eye! I didn't even see that lmao.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)