Пользователь
- Регистрация
- 27 Мар 2024
- Сообщения
- 25
- Автор темы
- #1
Привет, нашел в инете модик под основу, но тут много варнингов и erorov помогите пж за решение всех этих проблем переведу 100-150 р. Вот сами ошибки и строчки в коде:
(Ссылка на мод) - https://drive.google.com/file/d/1XDbBWn0NoOPobTAiaYiONIjmWdiOSF0X/view?usp=sharing
И сам код с ошибками:
Ероры:
Варнинги:
(Ссылка на мод) - https://drive.google.com/file/d/1XDbBWn0NoOPobTAiaYiONIjmWdiOSF0X/view?usp=sharing
Pawn:
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(1846) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(1852) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(1863) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(1869) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(10185) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(10197) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(11131) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(11219) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(11447) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(11561) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(12190) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(12206) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(12328) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(12341) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(12356) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(12395) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(12420) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(33048) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(33100) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(33153) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(33175) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(34063) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(34913) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(34925) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(35324) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(35395) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(35407) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(35420) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(35434) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(36778) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(36917) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\gamemodes\realistic.pwn(38531) : warning 208: function with tag result used before definition, forcing reparse
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(291) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(292) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(293) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(295) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(296) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(297) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(298) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(299) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(300) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(301) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(303) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(305) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(307) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(308) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(309) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(310) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(312) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(313) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(314) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(316) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(317) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(319) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(320) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(321) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(324) : error 025: function heading differs from prototype
D:\Games\for sale(dodelat)\pawno\include\a_samp.inc(326) : error 025: function heading differs from prototype
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Ероры:
Pawn:
rSpeed,
bool:rActive,
rObject,
rZone,
rMember,
}
new RadarInfo[MAX_RADARS][rInfo1];
new PlayerType[MAX_PLAYERS];
new mus_j;
new const Float:mus_pos[10][3] = {
{303.6071, 814.9943, 12.4832},
{196.6926, 954.5745, 12.4710},
{83.3698, 931.5879, 12.5478},
{-16.7284, 963.0363, 11.8418},
{-81.8012, 1047.7136, 12.5118},
{-6.6657, 1093.1188, 12.4796},
{193.1271, 1074.6534, 12.4491},
{345.1695, 1029.3748, 12.4781},
{414.1288, 923.7893, 12.4822},
{286.4512, 850.8884, 12.5654}
};
#define Mus_Dm 2000 //оплата за одну точку мусоровоза
new zone_r[5];
enum skinI
{
kols_itt,
name_s[90],
id0,
rang
}
#define forPod(%0) for(new %0 = 0; %0 < AllPod+1; %0++)
#define POD_X 1747.9825 //Где появится при входе в подъезд X
#define POD_Y -2347.8438 //Где появится при входе в подъезд Y
#define POD_Z 23.5419 //Где появится при входе в подъезд Z
#define POD_A 263.2307 //Где появится при входе в подъезд A
#define MAX_POD 50 //Максимальное кол-во подъездов которое может быть создано на сервере!
Pawn:
CALLBACK: IsKatB(carid)
{
new model = GetVehicleModel(carid);
if(model == 400 || model == 401 || model == 404 || model == 405 || model == 415 || model == 447 || model == 460 || model == 469 || model == 476 || model == 487 || model == 488 || model == 497 || model == 511 || model == 512 || model == 513 || model == 519 || model == 520 || model == 548 || model == 553 || model == 563 || model == 577 || model == 592 || model == 593
|| model == 434 || model == 436 || model == 438 || model == 439 || model == 440 || model == 442 || model == 445 || model == 451 || model == 457 || model == 458 || model == 459 || model == 466 || model == 467 || model == 470 || model == 474 || model == 475 || model == 477 || model == 478 || model == 479 || model == 480
|| model == 605 || model == 604 || model == 603 || model == 602 || model == 600 || model == 599 || model == 598 || model == 597 || model == 596 || model == 589 || model == 587 || model == 585 || model == 582 || model == 580 || model == 579 || model == 576 || model == 575 || model == 568 || model == 566 || model == 567
|| model == 566 || model == 565 || model == 562 || model == 561 || model == 560 || model == 559 || model == 558 || model == 555 || model == 554 || model == 552 || model == 551 || model == 550 || model == 549 || model == 547 || model == 546 || model == 545 || model == 543 || model == 542 || model == 541 || model == 540
|| model == 536 || model == 535 || model == 534 || model == 533 || model == 527 || model == 526 || model == 518 || model == 517 || model == 516 || model == 552 || model == 508 || model == 507 || model == 506 || model == 505 || model == 504 || model == 503 || model == 502 || model == 496 || model == 495 || model == 500
|| model == 494 || model == 492 || model == 491 || model == 490 || model == 485 || model == 482 || model == 402 || model == 426 || model == 410 || model == 420 || model == 421 || model == 419 || model == 411) return 1;
return 0;
}
CALLBACK: IsKatC(carid)
{
new model = GetVehicleModel(carid);
if(model == 403 || model == 406 || model == 409 || model == 412 || model == 418 || model == 422 || model == 423 || model == 424 || model == 427 || model == 428 || model == 514 || model == 515) return 1;
return 0;
}
CALLBACK: IsKatD(carid)
{
new model = GetVehicleModel(carid);
if(model == 417 || model == 407 || model == 431 || model == 443 || model == 437 || model == 498 || model == 544 || model == 601) return 1;
return 0;
}
CALLBACK: LockCar(carid)
{
GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(carid,engine,lights,alarm,true,bonnet,boot,objective);
}
CALLBACK: UnLockCar(carid)
{
GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(carid,engine,lights,alarm,false,bonnet,boot,objective);
}
CALLBACK: InitLockDoors(playerid)
{
if(IsPlayerConnected(playerid))
{
for(new c; c < MAX_VEHICLES; c++)
{
if(!aData[c][aKey]) continue;
if(aData[c][aLock]) SetVehicleParamsForPlayer(aData[c][aCarid], playerid, 0, 1);
}
}
return 1;
}
CALLBACK: SaveStuff()
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", Jackpot,Tax,TaxValue,Security,Treasury,CopSal,FbiSal,NGSal,MedSal,SwatSal,ReportSal,PolSal,LicSal,NonJobSal,biztax);
new File: file2 = fopen("logs/stuff.ini", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}
CALLBACK: SaveCK()
{
new idx;
new File: file2;
while(idx < sizeof(CKInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%s|%s|%d\n",
CKInfo[idx][cSendername],
CKInfo[idx][cGiveplayer],
CKInfo[idx][cUsed]);
if(idx == 0)
{
file2 = fopen("logs/ck.cfg", io_write);
}
else
{
file2 = fopen("logs/ck.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
CALLBACK: PayDay()
{
new string[128];
GetKvart();
new hours,minutes;
gettime(hours,minutes,_);
static const str0[] ="Текущее время на сервере: %02d:%02d";
foreach(new i:Player)
{
if(!IsPlayerConnected(i) || PlayerInfo[i][pLevel] < 0) continue;
if(MoneyMessage[i]==1)
{
SendClientMessage(i, COLOR_LIGHTRED, "Вы были не в состоянии оплатить свой долг и отправляетесь в тюрьму.");
SetPlayerInterior(i, 0);
SetPPos(i, -1801.5328,-2835.1184,14.2163);
PlayerInfo[i][pJailed] = 1;
ResetWeapons(i);
WantedPoints[i] = 0;
PlayerInfo[i][pJailTime] = 60;
format(string, sizeof(string), "Вас посадили в тюрьму на %d секунд. Выплата невозможна.", PlayerInfo[i][pJailTime]);
SendClientMessage(i, COLOR_LIGHTBLUE, string);
}
PlayerInfo[i][pRabotalLopatoy] = 0;
new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2));
if(PlayerInfo[i][pOtkRabota1] > 0) PlayerInfo[i][pOtkRabota1] -- ;
if(PlayerInfo[i][pOtkRabota2] > 0) PlayerInfo[i][pOtkRabota2] -- ;
if(PlayerInfo[i][pOtkRabota3] > 0) PlayerInfo[i][pOtkRabota3] -- ;
if(PlayerInfo[i][pOtkRabota7] > 0) PlayerInfo[i][pOtkRabota7] -- ;
if(PlayerInfo[i][pOtkRabota8] > 0) PlayerInfo[i][pOtkRabota8] -- ;
if(PlayerInfo[i][pOtkRabota12] > 0) PlayerInfo[i][pOtkRabota12] -- ;
if(PlayerInfo[i][pOtkRabota14] > 0) PlayerInfo[i][pOtkRabota14] -- ;
if(PlayerInfo[i][pOtkRabota15] > 0) PlayerInfo[i][pOtkRabota15] -- ;
if(PlayerInfo[i][pOtkRabota16] > 0) PlayerInfo[i][pOtkRabota16] -- ;
if(PlayerInfo[i][pOtkRabota22] > 0) PlayerInfo[i][pOtkRabota22] -- ;
if(PlayerInfo[i][pOtkRabota24] > 0) PlayerInfo[i][pOtkRabota24] -- ;
if(PlayerInfo[i][pPayDay] >= 5)
{
new bonus1 = PlayerInfo[i][pPayCheck] / 30;
PlayerInfo[i][pPayCheck] += bonus1;
if(PlayerInfo[i][pDonateRank] > 0)
{
new bonus = PlayerInfo[i][pPayCheck] / 10;
PlayerInfo[i][pPayCheck] += bonus;
}
}
ConsumingMoney[i] = 1;
Treasury += Tax;
format(string, sizeof(string),str0,hours,minutes);
SendClientMessage(i, COLOR_WHITE,string);
if(pdx2 == 1)
{
PlayerInfo[i][pExp]+=2;
PlayerPlayMusic(i);
SendClientMessage(i, COLOR_WHITE, "Вы получили {FCC729}два респекта {FFFFFF}за наигранный час к следующему уровню!");
PlayerInfo[i][pConnectTime] += 2;
}
else{
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
SendClientMessage(i, COLOR_WHITE, "Вы получили {FCC729}один респект {FFFFFF}за наигранный час к следующему уровню!");
PlayerInfo[i][pConnectTime] += 1;
}
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerTextDrawShow(i, zarplatka[0][i]);
PlayerTextDrawShow(i, zarplatka[1][i]);
SetTimerEx("hidezarplatka", 3000, false, "playerid", i);
if(PlayerInfo[i][pExp] >= levelexp*(PlayerInfo[i][pLevel]+1))
{
PlayerInfo[i][pExp] = 0;
PlayerInfo[i][pLevel]++;
PlayerInfo[i][gPupgrade] +=2;
format(string, sizeof(string), "Поздравляем! Вы автоматически перешли на %d уровень!", PlayerInfo[i][pLevel]);
if(strlen(PlayerInfo[i][pRef]) && PlayerInfo[i][pLevel] == 2) CheckRef(i,100000);
SendClientMessage(i, COLOR_LIGHTBLUE , string);
}
if(FarmerVar[i] == 0) FarmerPickup[i][0] = 0;
if(PlayerInfo[i][pNeSdal] == 1) PlayerInfo[i][pNeSdal] = 0;
if(PlayerInfo[i][pDonateRank] > 0)
{
PlayerInfo[i][pPayDayHad] += 1;
if(PlayerInfo[i][pPayDayHad] >= 5) PlayerInfo[i][pExp] += 1, PlayerInfo[i][pPayDayHad] = 0;
}
}
for(new i = 0; i < sizeof(AC); i++) AC[i][acTill2] = 0,SaveAcc(i);
SaveAccounts();
return 1;
}