take a look and help plz
#1

else
{
if(IsAnFarmer(playerid))
{
if(FarmerSpawn[playerid] == 0)
{
FarmerSpawn[playerid] = 1;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Normal Farm !");
}
else if(FarmerSpawn[playerid] == 1)
{
FarmerSpawn[playerid] = 0;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Drugs Farm !");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You dont own / rent a House !");
return 1;
}
}
}
return 1;
}

wtf is wrong??
error 029: invalid expression, assumed zero help plz

Reply
#2

What line is the error at?
Reply
#3

some at else
Reply
#4

use this :
Код:
else
      {
        if(IsAnFarmer(playerid))
        {
          if(FarmerSpawn[playerid] == 0)
          {
            FarmerSpawn[playerid] = 1;
            SendClientMessage(playerid, COLOR_GREY, "  You will now spawn at the Normal Farm !");
          }
          else if(FarmerSpawn[playerid] == 1)
          {
            FarmerSpawn[playerid] = 0;
            SendClientMessage(playerid, COLOR_GREY, "  You will now spawn at the Drugs Farm !");
          }
        }
        else
        {
         SendClientMessage(playerid, COLOR_GREY, "  You dont own / rent a House !");
         return 1;
        }
      }
    return 1;
  }
Reply
#5

you forgot some...
now give me the shit with 26 errors
Reply
#6

ok i guessed but u need to show us which line have the error and show what's above "else"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)