take a look and help plz - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: take a look and help plz (
/showthread.php?tid=143840)
take a look and help plz -
KennYthegod - 24.04.2010
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
Re: take a look and help plz -
sobolanux - 24.04.2010
What line is the error at?
Re: take a look and help plz -
KennYthegod - 24.04.2010
some at else
Re: take a look and help plz -
aircombat - 24.04.2010
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;
}
Re: take a look and help plz -
KennYthegod - 24.04.2010
you forgot some...
now give me the shit with 26 errors
Re: take a look and help plz -
aircombat - 24.04.2010
ok i guessed but u need to show us which line have the error and show what's above "else"