30.11.2014, 14:26
So the script is:
Error line:
Error:
I dont know what causes this error
PHP код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == FrontBumpers)
{
if(response)
{
new vId, i;
vId = GetPlayerVehicleID(playerid);
PlayerData[playerid][FrontBumper] = CreateObject(modelid, 0.0, 0.0, -14.0, 0.0, 0.0, 0.0);
PlayerData[playerid][VehicleID] = vId;
PlayerData[playerid][ObjectModel][i] = modelid;
PlayerData[playerid][EditionID] = i;
PlayerData[playerid][OffSetX][PlayerData[playerid][EditionID]] = 0.0;
PlayerData[playerid][OffSetY][PlayerData[playerid][EditionID]] = 0.0;
PlayerData[playerid][OffSetZ][PlayerData[playerid][EditionID]] = 0.0;
PlayerData[playerid][OffSetRX][PlayerData[playerid][EditionID]] = 0.0;
PlayerData[playerid][OffSetRY][PlayerData[playerid][EditionID]] = 0.0;
PlayerData[playerid][OffSetRZ][PlayerData[playerid][EditionID]] = 0.0;
PlayerData[playerid][ObjectID][i] = PlayerData[playerid][FrontBumper];
PlayerData[playerid][TimerID] = SetTimerEx("GetKeys", 30, true, "i", playerid);
EditingPart[playerid] = 1;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pVeh]) PlayerInfo[playerid][vTSlot1] = modelid;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pVVeh]) PlayerInfo[playerid][vVTSlot1] = modelid;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pVVVeh]) PlayerInfo[playerid][vVVTSlot1] = modelid;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pVVVVeh]) PlayerInfo[playerid][vVVVTSlot1] = modelid;
}
else ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_LIST, "What would you like to tune ?", "Front Bumper\nRear Bumper\nRoof\nHood\nSpoilers\nSide Skirts\nWheels", "Select", "Exit");
return 1;
}
return 1;
}
PHP код:
PlayerData[playerid][ObjectModel][i] = modelid;
PHP код:
warning 215: expression has no effect
error 001: expected token: ";", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line