22.06.2016, 06:16
Hello, any one can help me with this error , please.
i added this code :
Код:
new scoala2[MAX_PLAYERS]; scoala2[7] = CreateObject(19309,0,0,0,0,0,0,100.0); SetObjectMaterialText(scoala2[7], "DMV", 0, 50, "Arial", 27, 1, COLOR_YELLOW2, 0xFF000000, 1); AttachObjectToVehicle(scoala2[7], examcar, 0.0, -0.5, 0.9, 0.0, 0.0, 0.0);
i get this error
Код:
.pwn(35677) : error 035: argument type mismatch (argument 2)
Код:
examcar[playerid] = AddStaticVehicle(410, 1242.0013,-1850.0372,13.0384,90.7065, -1, -1);
Код:
CMD:exam(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You can't use this command when you are in a car."); if(PlayerToPoint(5.0,playerid, 1219.0502,-1812.7823,16.5938)) { new string[256]; if(PlayerInfo[playerid][pCarLic] == 0) { if(PlayerInfo[playerid][pCarLicSuspend] > 0) { format(string,sizeof(string),"Permisul tau de conducere a fost suspendat recent. Poti da examenul peste %d ore.",PlayerInfo[playerid][pCarLicSuspend]); SendClientMessage(playerid, COLOR_GREY, string); return 1; } if(TakingLesson[playerid] == 0) { TakingLesson[playerid] = 1; new scoala2[MAX_PLAYERS]; scoala2[7] = CreateObject(19309,0,0,0,0,0,0,100.0); SetObjectMaterialText(scoala2[7], "DMV", 0, 50, "Arial", 27, 1, COLOR_YELLOW2, 0xFF000000, 1); AttachObjectToVehicle(scoala2[7], examcar, 0.0, -0.5, 0.9, 0.0, 0.0, 0.0); examcar[playerid] = AddStaticVehicle(410, 1242.0013,-1850.0372,13.0384,90.7065, -1, -1); Gas[examcar[playerid]] = 100; PutPlayerInVehicleEx(playerid, examcar[playerid], 0); DisableRemoteVehicleCollisions(playerid, 1); SendClientMessage(playerid, COLOR_IN2, "Examenul a inceput. Mergi la checkpoint."); SendClientMessage(playerid, COLOR_IN2, "Scrie /engine sau apasa tasta 2 pentru a porni motorul masinii."); CP[playerid] = 100; PlayerTextDrawShow(playerid, DMVexam[playerid]); format(string, sizeof(string), "~w~CHECKPOINTS: ~r~0~w~/~r~24"); PlayerTextDrawSetString(playerid, DMVcheck[playerid], string); PlayerTextDrawShow(playerid, DMVcheck[playerid]); SetPlayerRaceCheckpoint(playerid,0, 1135.3868,-1850.5981,13.0366,1045.2626,-1809.4169,13.2637,4.0); } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have test."); } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have a drivers license."); } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You are not at the DMV."); return 1; }
this is in first was
Код:
CMD:exam(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You can't use this command when you are in a car."); if(PlayerToPoint(5.0,playerid, 1219.0502,-1812.7823,16.5938)) { new string[256]; if(PlayerInfo[playerid][pCarLic] == 0) { if(PlayerInfo[playerid][pCarLicSuspend] > 0) { format(string,sizeof(string),"Permisul tau de conducere a fost suspendat recent. Poti da examenul peste %d ore.",PlayerInfo[playerid][pCarLicSuspend]); SendClientMessage(playerid, COLOR_GREY, string); return 1; } if(TakingLesson[playerid] == 0) { TakingLesson[playerid] = 1; examcar[playerid] = AddStaticVehicle(410, 1242.0013,-1850.0372,13.0384,90.7065, -1, -1); Gas[examcar[playerid]] = 100; PutPlayerInVehicleEx(playerid, examcar[playerid], 0); DisableRemoteVehicleCollisions(playerid, 1); SendClientMessage(playerid, COLOR_IN2, "Examenul a inceput. Mergi la checkpoint."); SendClientMessage(playerid, COLOR_IN2, "Scrie /engine sau apasa tasta 2 pentru a porni motorul masinii."); CP[playerid] = 100; PlayerTextDrawShow(playerid, DMVexam[playerid]); format(string, sizeof(string), "~w~CHECKPOINTS: ~r~0~w~/~r~24"); PlayerTextDrawSetString(playerid, DMVcheck[playerid], string); PlayerTextDrawShow(playerid, DMVcheck[playerid]); SetPlayerRaceCheckpoint(playerid,0, 1135.3868,-1850.5981,13.0366,1045.2626,-1809.4169,13.2637,4.0); } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have test."); } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have a drivers license."); } else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You are not at the DMV."); return 1; }