09.05.2014, 20:32
(4750) : warning 211: possibly unintended assignment
Line
warn on this
______________________________________
(912 : warning 202: number of arguments does not match definition
Warning on
__________________________
(17544) : warning 219: local variable "idbiznis" shadows a variable at a preceding level
warn on
Line
Код:
if(dialogid == DIALOG_PINKART) { if(!response) { } if(response) { new pincard = PlayerInfo[playerid][pPincard]; new kart; //= strval(inputtext); if(sscanf(inputtext, "i", kart)) return SPD(playerid,DIALOG_PINKART,DIALOG_STYLE_INPUT,"Bankomat","Vnesete PinkKod na vasata Karticka","Vnesi","Izlezi"); //new kart if (kart > pincard) { SendClientMessage(playerid, COLOR_GRAD2, " Pogresen Pincod !"); return 1; } if (kart < pincard) { SendClientMessage(playerid, COLOR_GRAD2, " Pogresen Pincod !"); return 1; } if(kart = pincard) { ShowPlayerDialog(playerid, BANKOMAT, DIALOG_STYLE_LIST, "Bankomat", "Vnesi Pari\nIzvadi Pari\nVidi Kolku pari imate na kartickata", "Izberi", "Iskluci"); } } }
Код:
if(kart = pincard)
(912 : warning 202: number of arguments does not match definition
Код:
if(getcarid == carid) { CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; SendClientMessage(playerid,COLOR_YELLOW,"Go parkiravte vasiot avtomobil na ova mesto."); OnPropUpdate(); OnPlayerUpdate(playerid); DestroyVehicle(carid); CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000); PutPlayerInVehicle(playerid, carid); TogglePlayerControllable(playerid, 1); return 1; } } }
Код:
TogglePlayerControllable(playerid, 1);
(17544) : warning 219: local variable "idbiznis" shadows a variable at a preceding level
Код:
for(new idbiznis = 0; idbiznis < sizeof(BiznisInfo); idbiznis++) { new fFile[50]; format(fFile, sizeof(fFile), BIZNIS_FILE, idbiznis); if(fexist(fFile)) { INI_ParseFile(fFile, "UcitajBiznis", .bExtra = true, .extra = idbiznis); if(BiznisInfo[idbiznis][bProveraVlasnika] == 0) { format(string,sizeof(string),"{F81414}Biznisot se Prodava!\n{157DEC}Opis: {F3FF02}%s\n{157DEC}Cena: {F3FF02}$%d\n{157DEC}Level: {F3FF02}%d\n{157DEC}Adresa: {F3FF02}%s {157DEC}Br: {F3FF02}%d",BiznisInfo[idbiznis][bVrstaIme],BiznisInfo[idbiznis][bCena],BiznisInfo[idbiznis][bLevel],BiznisInfo[idbiznis][bAdresa],idbiznis); //BiznisLabel[idbiznis] = Create3DTextLabel(string ,0x33CCFFAA,BiznisInfo[idbiznis][bUlazX],BiznisInfo[idbiznis][bUlazY],BiznisInfo[idbiznis][bUlazZ],25,0,1); BiznisLabel[idbiznis] = CreateDynamic3DTextLabel(string, ZA3DTEXT, BiznisInfo[idbiznis][bUlazX],BiznisInfo[idbiznis][bUlazY],BiznisInfo[idbiznis][bUlazZ], 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 6.0); BiznisPickup[idbiznis] = CreatePickup(1272, 1, BiznisInfo[idbiznis][bUlazX], BiznisInfo[idbiznis][bUlazY], BiznisInfo[idbiznis][bUlazZ]); BiznisMapIcon[idbiznis] = CreateDynamicMapIcon( BiznisInfo[idbiznis][bUlazX], BiznisInfo[idbiznis][bUlazY], BiznisInfo[idbiznis][bUlazZ], BiznisInfo[idbiznis][bIcon], -1, -1, -1, -1, 100); } else if(BiznisInfo[idbiznis][bProveraVlasnika] == 1) { format(string,sizeof(string),"{F81414}Biznis\n{157DEC}Biznis: {F3FF02}%s\n{157DEC}Gazda: {F3FF02}%s\n{157DEC}Vlez: {F3FF02}%d\n{157DEC}Opis: {F3FF02}%s\n{157DEC}Adresa: {F3FF02}%s {157DEC}Br: {F3FF02}%d",BiznisInfo[idbiznis][bIme],BiznisInfo[idbiznis][bVlasnik],BiznisInfo[idbiznis][bVlez],BiznisInfo[idbiznis][bVrstaIme],BiznisInfo[idbiznis][bAdresa],idbiznis); //BiznisLabel[idbiznis] = Create3DTextLabel(string ,0x33CCFFAA,BiznisInfo[idbiznis][bUlazX],BiznisInfo[idbiznis][bUlazY],BiznisInfo[idbiznis][bUlazZ],25,0,1); BiznisLabel[idbiznis] = CreateDynamic3DTextLabel(string, ZA3DTEXT, BiznisInfo[idbiznis][bUlazX],BiznisInfo[idbiznis][bUlazY],BiznisInfo[idbiznis][bUlazZ], 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 6.0); BiznisPickup[idbiznis] = CreatePickup(1239, 1, BiznisInfo[idbiznis][bUlazX], BiznisInfo[idbiznis][bUlazY], BiznisInfo[idbiznis][bUlazZ]); } } }
Код:
for(new idbiznis = 0; idbiznis < sizeof(BiznisInfo); idbiznis++)