GM Error
#1

Hi There! I have an error and do I don t know can edit!


if(strcmp(cmd, "/savetuning", true)==0)
{
new pPcarkey;
new PlayerData[MAX_PLAYERS];
new PreVehicle;
new masina = GetPlayerVehicleID(playerid);
if(masina > PreVehicle)
{
if[(PlayerData[playerid][pPcarkey] == masina-PreVehicle || PlayerData[playerid][pPcarkey2] == masina-PreVehicle)];
{
new component;
new query[256];
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 0);
format(query, sizeof(query), "UPDATE cars SET Component00='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent00] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 1);
format(query, sizeof(query), "UPDATE cars SET Component01='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent01] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 2);
format(query, sizeof(query), "UPDATE cars SET Component02='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent02] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 3);
format(query, sizeof(query), "UPDATE cars SET Component03='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent03] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 4);
format(query, sizeof(query), "UPDATE cars SET Component04='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent04] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 5);
format(query, sizeof(query), "UPDATE cars SET Component05='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent05] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 6);
format(query, sizeof(query), "UPDATE cars SET Component06='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent06] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 7);
format(query, sizeof(query), "UPDATE cars SET Component07='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent07] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), ;
format(query, sizeof(query), "UPDATE cars SET Component08='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent08] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 9);
format(query, sizeof(query), "UPDATE cars SET Component09='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent09] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 10);
format(query, sizeof(query), "UPDATE cars SET Component10='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent10] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 11);
format(query, sizeof(query), "UPDATE cars SET Component11='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent11] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 12);
format(query, sizeof(query), "UPDATE cars SET Component12='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent12] = component;
component = GetVehicleComponentInSlot(GetPlayerVehicleID(playe rid), 13);
format(query, sizeof(query), "UPDATE cars SET Component13='%d' WHERE id=%d",component,masina-PreVehicle);
mysql_query(query);
CarData[masina-PreVehicle][cComponent13] = component;
format(string, sizeof(string), "* %s si-a salvat componentele tuningului de la masina.", PlayerData[playerid][pNume]);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
printf("%s", string);
return 1;
}
return 1;
}
return 1;

AND ERRORS


C:\Users\-----------gigel----\Desktop\Folder nou (3)\Folder nou (5)\gamemodes\GTA.pwn(25316) : error 029: invalid expression, assumed zero
C:\Users\-----------gigel----\Desktop\Folder nou (3)\Folder nou (5)\gamemodes\GTA.pwn(25316) : error 001: expected token: ")", but found "["
C:\Users\-----------gigel----\Desktop\Folder nou (3)\Folder nou (5)\gamemodes\GTA.pwn(25316) : warning 215: expression has no effect
C:\Users\-----------gigel----\Desktop\Folder nou (3)\Folder nou (5)\gamemodes\GTA.pwn(25316) : error 001: expected token: ";", but found "]"
C:\Users\-----------gigel----\Desktop\Folder nou (3)\Folder nou (5)\gamemodes\GTA.pwn(25316) : fatal error 107: too many error messages on one line


Help me Please !!
Reply


Forum Jump:


Users browsing this thread: