02.01.2011, 05:42
i keep geting this error
plz help
and this is it here
plz help
Код:
C:\Users\Ryan\Desktop\World Wide RolePlay\gamemodes\WWRP.pwn(4513) : error 017: undefined symbol "string" C:\Users\Ryan\Desktop\World Wide RolePlay\gamemodes\WWRP.pwn(4513) : error 017: undefined symbol "string" C:\Users\Ryan\Desktop\World Wide RolePlay\gamemodes\WWRP.pwn(4513) : error 029: invalid expression, assumed zero C:\Users\Ryan\Desktop\World Wide RolePlay\gamemodes\WWRP.pwn(4513) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
else if(dialogid == DIALOG_CDBUY) { new vehicleid = GetPlayerVehicleID(playerid); new v = GetCarDealershipVehicleId(vehicleid); new d = GetCarDealershipId(vehicleid); if(response) { if(GetPlayerMoney(playerid) < CarDealershipInfo[d][cdVehicleCost][v]) { SendClientMessage(playerid, COLOR_GRAD1, "ERROR: You don't have enough money to buy this."); RemovePlayerFromVehicle(playerid); return 1; } new playervehicleid = GetPlayerFreeVehicleId(playerid); if(playervehicleid == -1) return SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars."); new randcolor1 = Random(0, 126); new randcolor2 = Random(0, 126); new car = CreatePlayerVehicle(playerid, playervehicleid, CarDealershipInfo[d][cdVehicleModel][v], CarDealershipInfo[d][cdVehicleSpawn][0], CarDealershipInfo[d][cdVehicleSpawn][1], CarDealershipInfo[d][cdVehicleSpawn][2], CarDealershipInfo[d][cdVehicleSpawn][3], randcolor1, randcolor2); if(car == INVALID_PLAYER_VEHICLE_ID) { SendClientMessage(playerid, COLOR_GREY, "ERROR: Something went wrong and the car didn't get created."); } else { format(string, sizeof(string), " Thank you for buying at %s.", CarDealershipInfo[d][cdMessage]); // this is the line 4513 here SendClientMessage(playerid, COLOR_GRAD1, string); GivePlayerMoney(playerid, -CarDealershipInfo[d][cdVehicleCost][v]); CarDealershipInfo[d][cdTill] += ( CarDealershipInfo[d][cdVehicleCost][v] * 40 ) / ( 100 ); PutPlayerInVehicle(playerid, car, 0); SavecDealership(editingcd[playerid]); } } else { RemovePlayerFromVehicle(playerid); return 1; } }