Uitati am bagat o comanda cu care pot creea masini personale
Bun de acum cand sa compilez Hopa erori
Liniile:
Bun de acum cand sa compilez Hopa erori
Quote:
D:\serrver samp\New folder\gamemodes\FkZ.pwn(8162) : warning 213: tag mismatch D:\serrver samp\New folder\gamemodes\FkZ.pwn(20801) : error 017: undefined symbol "CarInfo" D:\serrver samp\New folder\gamemodes\FkZ.pwn(20801) : warning 215: expression has no effect D:\serrver samp\New folder\gamemodes\FkZ.pwn(20801) : error 001: expected token: ";", but found "]" D:\serrver samp\New folder\gamemodes\FkZ.pwn(20801) : error 029: invalid expression, assumed zero D:\serrver samp\New folder\gamemodes\FkZ.pwn(20801) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. |
Liniile:
Quote:
//===============================[acreatecar]================================== if(strcmp(cmd, "/acreatecar", true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 1338 || IsPlayerAdmin(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /acreatecar [carid] [color1] [color2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_WHITE, "{0950F7}* Vehicle Number can't be below 400 or above 611 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /acreatecar [carid] [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_WHITE, "{0950F7}* Color Number can't be below 0 or above 126 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /acreatecar [carid] [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_WHITE, "{0950F7}* Color Number can't be below 0 or above 126 !"); return 1; } tmp = strtok(cmdtext, idx); //if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /acreatecar [carid] [color1] [color2] [price]"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new thiscar = CreateVehicle(car,X,Y,Z,1,color1,color2,99999999); //new value = strval(tmp); CarInfo[thiscar][cOwned] = 0; CarInfo[thiscar][cModel] = car; CarInfo[thiscar][cColorOne] = color1; CarInfo[thiscar][cColorTwo] = color2; CarInfo[thiscar][cLocationx] = X; CarInfo[thiscar][cLocationy] = Y; CarInfo[thiscar][cLocationz] = Z; CarInfo[thiscar][cAngle] = 1; CarInfo[thiscar][paintjob] = -1; LoadComponents(thiscar); PutPlayerInVehicle(playerid,thiscar,0); strmid(CarInfo[vehid][cOwner], "Dealership", 0, strlen("Dealership"), 999); format(CarInfo[thiscar][cDescription], 32, "%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); // format(TextCar, sizeof(TextCar), "{EE1111}ForSale: {80D52B} $%d ", CarInfo[thiscar][cValue]); // TextUpCar[thiscar] = Create3DTextLabel(TextCar, 0x33AAFFFF , 0.0, 0.0, 0.0, 25, 0, 1); // Attach3DTextLabelToVehicle(TextUpCar[thiscar], thiscar, 0.0, 0.0, 0.1); format(string, sizeof(string), " Personal Car was created.ID: {FFFFFF}[%d]", thiscar); SendClientMessage(playerid, COLOR_GREEN, string); ShowPlayerDialog(playerid,DIALOGIDSETOWNER,DIALOG_ STYLE_INPUT,"{E0941B}Vehicle owner","Scrie ID/Nume player\nca sa il faci proprietar:","Enter","Close"); OnCarUpdate(); return 1; } else { SendClientMessage(playerid, COLOR_RED, " You are not authorized to use that command "); return 1; } } |
Aucun commentaire:
Enregistrer un commentaire