16.07.2011, 22:54
I got those errors:
and This is my script
Help?
PHP код:
C:\Users\Yuvalino\Desktop\Server\filterscripts\CarS.pwn(550) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Yuvalino\Desktop\Server\filterscripts\CarS.pwn(551) : error 001: expected token: "-string end-", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
if(!strcmp(cmd,"/car",true))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,red,"You aren't in vehicle");
if(dini_Exists(vFile(vehicleid)) && dini_Int(vFile(vehicleid),"adminCar") != 1 && strcmp(dini_Get(vFile(vehicleid), "CarOwner"), "None", true) != 0 && dini_Int(vFile(vehicleid),"sCar") != 0) return SendClientMessage(playerid, red, "This Vehicle is private");
if(dini_Exists(vFile(vehicleid)) && dini_Int(vFile(vehicleid),"adminCar") != 1 && dini_Int(vFile(vehicleid),"sCar") == 0 && strcmp(dini_Get(vFile(vehicleid), "CarOwner"), "None", true) != 0) return SendClientMessage(playerid, red, "This Vehicle is private");
if(dini_Exists(vFile(vehicleid)) && dini_Int(vFile(vehicleid),"adminCar") != 0) return SendClientMessage(playerid, red, "This vehicle dont have info");
if(!dini_Exists(vFile(vehicleid))) return SendClientMessage(playerid, red, "This vehicle dont have info");
new title[128];
new l1[128];
new l2[128];
format(title, sizeof(title), "---------------------- Vehicle Info [%s] ------------------------", VehNames[GetVehicleModel(vehicleid)-400]);
format(l1, sizeof(l1), "Car Cost: {FFFFFF} %s", CarPrice);
/* Line 550 */if(dini_Int(vFile(vehicleid),"sCar" != 0) SendClientMessage(playerid, 0x33CCCC00, "VehicleType: {FFFFFF}Special");
/* Line 551 */if(dini_Int(vFile(vehicleid),"sCar" == 0) SendClientMessage(playerid, 0x33CCCC00, "VehicleType: {FFFFFF}Regular");
format(l2, sizeof(l1), "Vehicle ID: {FFFFFF} %s", GetPlayerVehicleID(playerid));
return 1;
}