SA-MP Forums Archive
ERRORS!!!!!!!!!!!!!!!!!! - 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: ERRORS!!!!!!!!!!!!!!!!!! (/showthread.php?tid=269562)



ERRORS!!!!!!!!!!!!!!!!!! - Captain Price - 16.07.2011

I got those errors:
PHP код:
C:\Users\Yuvalino\Desktop\Server\filterscripts\CarS.pwn(550) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\Yuvalino\Desktop\Server\filterscripts\CarS.pwn(551) : error 001expected token"-string end-"but found "-identifier-"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

and This is my script

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;
    }
Help?


Re: ERRORS!!!!!!!!!!!!!!!!!! - Calgon - 16.07.2011

It's pretty obvious, you've missed a bracket out.

pawn Код:
/* 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");
Next time, you should look over your code properly to see if there's anything missing, prior to posting one of these threads with a ridiculous title.


Re: ERRORS!!!!!!!!!!!!!!!!!! - lolumadd_ - 16.07.2011

Those two lines should look like:
pawn Код:
/* 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");



Re: ERRORS!!!!!!!!!!!!!!!!!! - Captain Price - 16.07.2011

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
It's pretty obvious, you've missed a bracket out.

pawn Код:
/* 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");
Next time, you should look over your code properly to see if there's anything missing, prior to posting one of these threads with a ridiculous title.
Quote:
Originally Posted by lolumadd_
Посмотреть сообщение
Those two lines should look like:
pawn Код:
/* 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");
Thanks guys, Im pretty tired becuase it's 2:10 In my clock, "I got the eyes in the sky"