SA-MP Forums Archive
Mazoqu Faction cars script error - 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: Mazoqu Faction cars script error (/showthread.php?tid=597374)



Mazoqu Faction cars script error - marinica2001 - 30.12.2015

This is the script
Quote:

if(newcar >= Mazoqu[0] && newcar <= Mazoqu[10])
{
if(PlayerInfo[playerid][pMember] != 13 && PlayerInfo[playerid][pLeader] != 13)
{
SendClientMessage(playerid,COLOR_WHITE,"Nu esti membru {47476B}Mazoku Al-Qaeda Family{FFFFFF}!");
RemovePlayerFromVehicle(playerid);
}
if(newcar >= Mazoqu[0] && <= Mazoqu[3] && PlayerInfo[playerid][pRank] < 1)
{
SendClientMessage(playerid,COLOR_GREY,"Iti trebuie {47476B}}rank 1{FFFFFF}!");
RemovePlayerFromVehicle(playerid);
}
if(newcar >= Mazoqu[4] && <= Mazoqu[5] && PlayerInfo[playerid][pRank] < 2)
{
SendClientMessage(playerid,COLOR_GREY,"Iti trebuie {47476B}rank 2{FFFFFF}!");
RemovePlayerFromVehicle(playerid);
}
if(newcar >= Mazoqu[6] && <= Mazoqu[8] && PlayerInfo[playerid][pRank] < 3)
{
SendClientMessage(playerid,COLOR_GREY,"Iti trebuie {47476B}rank 3{FFFFFF}!");
RemovePlayerFromVehicle(playerid);
}
if(newcar == Mazoqu[10] && PlayerInfo[playerid][pRank] < 4)
{
SendClientMessage(playerid,COLOR_GREY,"Iti trebuie {47476B}rank 4{FFFFFF}!");
RemovePlayerFromVehicle(playerid);
}
if(newcar == Mazoqu[9] && PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid,COLOR_GREY,"Iti trebuie {47476B}rank 5{FFFFFF}!");
RemovePlayerFromVehicle(playerid);
}
}

And this is the error
Quote:

C:\Users\Marian\Desktop\Server SAMP\gamemodes\XGamers.pwn(10230) : error 029: invalid expression, assumed zero
C:\Users\Marian\Desktop\Server SAMP\gamemodes\XGamers.pwn(10230) : warning 215: expression has no effect
C:\Users\Marian\Desktop\Server SAMP\gamemodes\XGamers.pwn(10230) : error 001: expected token: ";", but found ")"
C:\Users\Marian\Desktop\Server SAMP\gamemodes\XGamers.pwn(10230) : error 029: invalid expression, assumed zero
C:\Users\Marian\Desktop\Server SAMP\gamemodes\XGamers.pwn(10230) : fatal error 107: too many error messages on one line

Any ideas?


Re: Mazoqu Faction cars script error - marinica2001 - 30.12.2015

Nevermind. I found my problem. Forgot to add "newcar" . T.C. please