Sziasztok!
Valaki tudna segíteni ebben a kis problémában?
Hiba:
(4308) : error 017: undefined symbol \"cmdtext\"
(4308) : warning 215: expression has no effect
(4308) : error 001: expected token: \";\", but found \"]\"
(4308) : error 029: invalid expression, assumed zero
(4308) : fatal error 107: too many error messages on one line
Sor:
new str[128], Float:pos[3]; format(str, sizeof(str), \"%s\", cmdtext[2]);
Teljes script:
CMD:lp(playerid, params[]) {
if(PlayerInfo[playerid][Level] >= 1) {
if (GetPlayerState(playerid) == 2)
{
new VehicleID = GetPlayerVehicleID(playerid), LModel = GetVehicleModel(VehicleID);
switch(LModel) { case 448,461,462,463,468,471,509,510,521,522,523,581,586, 449: return SendClientMessage(playerid,red,\"ERROR: You can not tune this vehicle\"); }
new str[128], Float:pos[3]; format(str, sizeof(str), \"%s\", cmdtext[2]);
SetVehicleNumberPlate(VehicleID, str);
GetPlayerPos(playerid, pos[0], pos[1], pos[2]); SetPlayerPos(playerid, pos[0]+1, pos[1], pos[2]);
SetVehicleToRespawn(VehicleID); SetVehiclePos(VehicleID, pos[0], pos[1], pos[2]);
SetTimerEx(\"TuneLCar\",4000,0,\"d\",VehicleID); PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
SendClientMessage(playerid, blue, \"You have changed your licence plate\"); CMDMessageToAdmins(playerid,\"LP\");
} else {
SendClientMessage(playerid,red,\"Error: You have to be the driver of a vehicle to change its licence plate\"); }
} else {
SendClientMessage(playerid,red,\"ERROR: You need to be level 1 use this command\"); }
return 1; }