09.05.2014, 22:54
can anyone help me about this warnings?
(9132) : warning 202: number of arguments does not match definition
warn on this
(9164) : warning 202: number of arguments does not match definition
warn on this
(9564) : warning 205: redundant code: constant expression is zero
warn on this
(9884) : warning 213: tag mismatch
warn on this
(10447) : warning 202: number of arguments does not match definition
Warn on this
(9132) : warning 202: number of arguments does not match definition
Код:
if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1) { if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999) { SendClientMessage(playerid, COLOR_GREY, "Vie ne poseduvate Avtomobil."); return 1; } 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; } } }
Код:
PutPlayerInVehicle(playerid, carid);
Код:
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { GetPlayerName(playerid, sendername, sizeof(sendername)); new ownvehkey; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { ownvehkey = PlayerInfo[playerid][pPcarkey2]; } else { return 1; } if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0) { new carsellprice = CarInfo[ownvehkey][cValue] / 4 * 3; new Float:x,Float:y,Float:z; new Float:a; CarInfo[ownvehkey][cOwned] = 0; strmid(CarInfo[ownvehkey][cOwner], "Dealership", 0, strlen("Dealership"), 999); GivePlayerMoney(playerid,carsellprice); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SendClientMessage(playerid,COLOR_YELLOW,"Go prodadovte vasiot avtomobil za %d.", carsellprice); GetVehiclePos(ownvehkey, x, y, z); GetVehicleZAngle(ownvehkey, a); CarInfo[ownvehkey][cLocationx] = x; CarInfo[ownvehkey][cLocationy] = y; CarInfo[ownvehkey][cLocationz] = z; CarInfo[ownvehkey][cAngle] = a; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { PlayerInfo[playerid][pPcarkey] = 999; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { PlayerInfo[playerid][pPcarkey2] = 999; } RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); if(PlayerInfo[playerid][pLocal] == ownvehkey) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]); PlayerInfo[playerid][pInt] = 0; } OnPropUpdate(); OnPlayerUpdate(playerid); DestroyVehicle(ownvehkey); CreateVehicle(CarInfo[ownvehkey][cModel],CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]+1.0,CarInfo[ownvehkey][cAngle],CarInfo[ownvehkey][cColorOne],CarInfo[ownvehkey][cColorTwo],60000); return 1; } }
Код:
SendClientMessage(playerid,COLOR_YELLOW,"Go prodadovte vasiot avtomobil za %d.", carsellprice);
Код:
if(dialogid == DIALOG_bProizvodi) { if(response) { if(PlayerInfo[playerid][pPosedovanjeFirme] == 0) return SCM(playerid,BELA, "{F81414}GRESKA:{FFFFFF}Nemate Biznis!"); new i = PlayerInfo[playerid][pPosedovanjeFirme]; new pr; if(sscanf(inputtext, "i", pr)) return SPD(playerid, DIALOG_bProizvodi, DIALOG_STYLE_INPUT, "Vlez", "Vnesete suma na pari koja sakate da bide vlez za vo vasiot biznis","Vnesi", "Izlezi"); if(1 > 10000) { //if(sscanf(inputtext, "i", pr)) return SPD(playerid, DIALOG_bProizvodi, DIALOG_STYLE_INPUT, "Vlez", "Vnesete suma na pari koja sakate da bide vlez za vo vasiot biznis","Vnesi", "Izlezi"); BiznisInfo[i][bVlez] = pr; SacuvajBiznis(i); BiznisLP(i); SCMF(playerid,BELA,"{6EF83C}INFO:{FFFFFF}Vlezot na vasiot biznis sega e {FFFFFF}$%d!", pr); }else return SCM(playerid,BELA,"{6EF83C}INFO:{FFFFFF}Vlezot nemoze da bide pomal od 1$ ili pogolem od 10000$"); } }
Код:
if(1 > 10000)
Код:
if(dialogid == DIALOG_FIRMA2) { if(!response) return 1; if(PlayerInfo[playerid][pPosedovanjeFirme2] == 0) return SCM(playerid,BELA, "{F81414}GRESKA:{FFFFFF} Nemate Biznis!"); new i = PlayerInfo[playerid][pPosedovanjeFirme2]; switch(listitem) { case 0: { if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,BELA,"{F81414}GRESKA:{FFFFFF} Ne ste kaj vasta Firma!"); GivePlayerMoney(playerid,FirmaInfo[i][fCena]/2); FirmaInfo[i][fProveraVlasnika] = 0; FirmaInfo[i][fKasa] = 0; strmid(FirmaInfo[i][bVlasnik], "Niko", 0, strlen("Niko"), 255); PlayerInfo[playerid][pPosedovanjeFirme2] = 0; SacuvajFirme(i); FirmaLP(i); OnPlayerUpdate(playerid); format(string,sizeof(string),"{6EF83C}INFO:{FFFFFF}Ja prodadovte Firmata za{FFFFFF}$%d {00C0FF}!",FirmaInfo[i][fCena]); SCM(playerid,BELA,string); } case 1: { format(string,sizeof(string),"Kasa: %d ",FirmaInfo[i][fKasa]); SCM(playerid,BELA,string); } case 2: { SPD(playerid,ZArabotka_FIRMA,DIALOG_STYLE_INPUT, "Podigni Pari", "Vnesite Suma na pari \nkoja sakate da ja podignete od vasata firma", "Podigni", "Izlezi"); } } }
Код:
strmid(FirmaInfo[i][bVlasnik], "Niko", 0, strlen("Niko"), 255); PlayerInfo[playerid][pPosedovanjeFirme2] = 0;
Код:
if(dialogid == 9813) { if(response) { strval(inputtext); strmid(PlayerInfo[playerid][pEmail], inputtext, 0, strlen(inputtext), 225); format(string, sizeof(string), "{6EF83C}INFO:{FFFFFF}Go promenavte vasiot E-Mail vo %s.", inputtext); SendClientMessage(playerid, COLOR_WHITE, string); EmailDozvola[playerid] = 0; OnPlayerRegister(playerid); } }
Код:
OnPlayerRegister(playerid);