06.06.2015, 09:56
hello guys, i want to make Taxi Cars on rank's and i have too error's
this is the script
and this is the error's
What it's wrong ?
this is the script
PHP код:
if(newcar == taxic[6]) // Rank Masini Taxi
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
if(PlayerInfo[playerid][pRank] > 6) { }
else
{
SendClientMessage(playerid,COLOR_WHITE,"{999999}You don't have rank 6.");
RemovePlayerFromVehicleEx(playerid);
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Los Santos Taxi member or you don't have rank 6.");
RemovePlayerFromVehicleEx(playerid);
}
else if(newcar == taxic[4])
{
//if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
//{
if(PlayerInfo[playerid][pRank] > 4) { }
else
{
SendClientMessage(playerid,COLOR_WHITE,"{999999}You don't have rank 4.");
RemovePlayerFromVehicleEx(playerid);
}
//}
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Los Santos Taxi member or you don't have rank 4.");
RemovePlayerFromVehicleEx(playerid);
}
}
PHP код:
Current directory: C:\Documents and Settings\Pc\Desktop\Gamelife\gamemodes
Gamelife.pwn(8780) : error 029: invalid expression, assumed zero
Gamelife.pwn(8780) : warning 215: expression has no effect
Gamelife.pwn(8780) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase