03.04.2011, 03:07
Hey guys please help me out with this command:
I get this error:
pawn Код:
if(strcmp(cmd,"/towcar",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(GetVehicleModel(525))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
}
}
else
{
AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
}
else(Line 16997)
{
if(!GetVehicleModel(525))
{
SendClientMessage(playerid, COLOR_RED, "You are not in a tow truck");
}
else(Line 17003)
{
if(!(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
(Line 17003)
SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command");
}
}
}
}
}
}
Код:
VGRP.pwn(16997) : error 029: invalid expression, assumed zero VGRP.pwn(17003) : warning 217: loose indentation VGRP.pwn(17006) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.