- 0
Войдите для возможности подписаться
Подписчики
0
-
Последние посетители 0 пользователей онлайн
Ни одного зарегистрированного пользователя не просматривает данную страницу
-
Похожий контент
-
От grizly57a
вот логи
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [16:41:25] [16:41:25] Server Plugins [16:41:25] -------------- [16:41:25] Loading plugin: crashdetect.so [16:41:25] CrashDetect plugin 4.19.4 [16:41:25] Loaded. [16:41:25] Loading plugin: pawncmd.so [16:41:25] Pawn.CMD plugin v3.2.0 by urShadow has been loaded [16:41:25] Loaded. [16:41:25] Loading plugin: pawnraknet.so [16:41:25] [Pawn.RakNet] plugin v1.6.0 loading... [16:41:25] [Pawn.RakNet] | Pawn.RakNet 1.6.0 | 2016 - 2023 |-------------------------------- | Author and maintainer: katursis | Compiled: Feb 12 2023 at 19:35:06 |-------------------------------------------------------------- | Repository: https://github.com/katursis/Pawn.RakNet |-------------------------------------------------------------- | Wiki: https://github.com/katursis/Pawn.RakNet/wiki [16:41:25] Loaded. [16:41:25] Loading plugin: sscanf.so [16:41:25] [16:41:25] =============================== [16:41:25] sscanf plugin loaded. [16:41:25] Version: 2.8.3 [16:41:25] (c) 2018 Alex "Y_Less" Cole [16:41:25] =============================== [16:41:25] Loaded. [16:41:25] Loading plugin: streamer.so [16:41:25] *** Streamer Plugin v2.9.4 by Incognito loaded *** [16:41:25] Loaded. [16:41:25] Loading plugin: mysql_static.so [16:41:25] >> plugin.mysql: R39-6 successfully loaded. [16:41:25] Loaded. [16:41:25] Loading plugin: TOTP.so [16:41:25] TOTP plugin v1.0.1 by Games loaded. [16:41:25] Loaded. [16:41:25] Loading plugin: profiler.so [16:41:25] Profiler plugin 2.15.1 [16:41:25] Loaded. [16:41:25] Loading plugin: timerfix.so [16:41:25] >> TimerFix v1.5 successfully loaded. [16:41:25] Loaded. [16:41:25] Loading plugin: UTuning.so [16:41:25] Loaded. [16:41:25] Loading plugin: housecar.so [16:41:25] Loaded. [16:41:25] Loading plugin: TOTP.so [16:41:25] TOTP plugin v1.0.1 by Games loaded. [16:41:25] Loaded. [16:41:25] Loading plugin: FCNPC.so [16:41:25] [16:41:25] ------------------------------------------------- [16:41:25] FCNPC - Fully Controllable NPC v2.0.9 [16:41:25] GNU/Linux SA-MP 0.3.7 R2 [16:41:25] Apr 17 2024 at 09:11:36 [16:41:25] [16:41:25] Author: OrMisicL (2013 - 2015) [16:41:25] Continued by: ziggi (2016 - present) [16:41:25] [16:41:25] See full credits in the README.md file [16:41:25] ------------------------------------------------- [16:41:25] [16:41:25] Loading... [16:41:25] [16:41:25] ------------------------------------------------- [16:41:25] ColAndreasv1.4.0 [16:41:25] [16:41:25] Created By: [16:41:25] [uL]Chris42O [16:41:25] [uL]Slice [16:41:25] [uL]Pottus [16:41:25] ------------------------------------------------- [16:41:25] [16:41:25] Loading... [16:41:25] ColAndreas v1.4.0 Loaded. [16:41:25] Loaded. [16:41:25] Loaded 13 plugins. [16:41:25] [16:41:25] Filterscripts [16:41:25] --------------- [16:41:25] Loading filterscript 'voice.amx'... [16:41:25] No collision data found. [16:41:25] [FCNPC] Warning: Unable to create NPCs. The maxnpc limit in server.cfg is 0. [16:41:25] -------------------------------------- [16:41:25] VOICE COPY RADMIR BY ������ dev. [16:41:25] -------------------------------------- [16:41:25] Loaded 1 filterscripts. [16:41:25] *** Streamer Plugin: Include file version (0x295) does not match plugin version (0x294) (script might need to be recompiled with the correct include file). [16:41:25] ------------------------------------------ [16:41:25] SSSS [16:41:25] ------------------------------------------ [16:41:25] mapname = "San Andreas" (string) [16:41:25] [Vehicle]: ��� ������������ �������� ������� [16:41:25] [TP]: ��� �����/������ ������� [16:41:25] [ATM]: ��� ��������� ������� [16:41:25] ����������� � ���� ������ �� ������� [������� � ����� ������ ����������] [16:41:25] ----------------------------------------- [16:41:25] [16:41:25] [16:41:25] [16:41:25] ----------------------------------------- [16:41:25] Number of vehicle models: 55 [16:42:00] [connection] 93.159.241.195:2395 requests connection cookie. [16:42:01] [connection] incoming connection: 93.159.241.195:2395 id: 0 [16:42:02] [join] Dkak_wlaas has joined the server (0:93.159.241.195) [16:42:02] [part] Dkak_wlaas has left the server (0:2)
-
TheRoman Новичок 0
qq all, ошибка : warning: recursionin in ExitBone: call from ShowResult
C:\Users\BLABLA\Desktop\BLABLA\gamemodes\BLABLA.pwn(12520) : warning: recursion in ExitBone: call from ShowResult C:\Users\BLABLA\Desktop\BLABLA\gamemodes\BLABLA.pwn(12430)
Disable recursion warning: #pragma disablerecursion or #pragma warning disable 238
Pawn compiler 3.2.3664 Copyright (c) 1997-2017, ITB CompuPhase
1 Warning.
stock ExitBone(playerid)
{
new null[2] = 0;
if(GetPVarInt(playerid,"playing_casino_ex") && TableInfo[GetPVarInt(playerid,"playing_casino")-1][GameStart] <= 0)
{
TransferMoney(-1, playerid, TableInfo[GetPVarInt(playerid,"playing_casino")-1][Bet], "âîçâðàò ñòàâêè");
TableInfo[GetPVarInt(playerid,"playing_casino")-1][Bank]-=TableInfo[GetPVarInt(playerid,"playing_casino")-1][Bet];
}
foreach(new i: Player)
{
if(GetPVarInt(i,"playing_casino") == GetPVarInt(playerid,"playing_casino") && i != playerid && GetPVarInt(i,"playing_casino_ex") == 1) null[0]++;
if(GetPVarInt(i,"playing_casino") == GetPVarInt(playerid,"playing_casino") && i != playerid && GetPVarInt(i,"playing_casino_ex") > 1) null[1]++;
}
if(null[0] == 0 && null[1] > 0) ShowResult(GetPVarInt(playerid,"playing_casino")-1);
if(TableInfo[GetPVarInt(playerid,"playing_casino")-1][Crupie] == playerid) TableInfo[GetPVarInt(playerid,"playing_casino")-1][Crupie] = INVALID_PLAYER_ID;
for(new i; i < 11; i++) TextDrawHideForPlayer(playerid, Bone);
for(new i; i < 6; i++) PlayerTextDrawHide(playerid, PlayerBone[playerid]);
for(new i_ = 0; i_ != 5; i_++) if(TableInfo[GetPVarInt(playerid,"playing_casino")-1][Player][i_] == playerid) TableInfo[GetPVarInt(playerid,"playing_casino")-1][Player][i_] = INVALID_PLAYER_ID;
UpdateBone(GetPVarInt(playerid,"playing_casino")-1);
DeletePVar(playerid,"playing_casino");
DeletePVar(playerid,"playing_casino_ex");
CancelSelectTextDraw(playerid);
return true;
}
forward ShowResult(idx);
public ShowResult(idx)
{
new itog[3] = -1,string[128]; itog[0] = -1; itog[1] = -1; itog[2] = -1;
foreach(new i: Player)
{
if(GetPVarInt(i,"playing_casino")-1 == idx && GetPVarInt(i,"playing_casino_ex") > 1 && GetPVarInt(i,"playing_casino_ex") > itog[0]) itog[0] = GetPVarInt(i,"playing_casino_ex"), itog[1] = i;
if(GetPVarInt(i,"playing_casino")-1 == idx && GetPVarInt(i,"playing_casino_ex") > 1 && i != itog[1] && GetPVarInt(i,"playing_casino_ex") == itog[0]) itog[2] = i;
}
if(itog[2] > -1)
{
foreach(new i: Player)
{
if(GetPVarInt(i,"playing_casino")-1 == idx && GetPVarInt(i,"playing_casino_ex") > 1 && GetPVarInt(i,"playing_casino_ex") == itog[0]) SetPVarInt(i,"playing_casino_ex",1), TableInfo[idx][GameStart] = 30, SendClientMessage(i,0x4B00B0AA,"Âû ïîïàëè â ñëåäóþùèé ðàóíä. Ó âàñ åñòü 30 ñåêóíä, ÷òîáû áðîñèòü êîñòè");
else if(GetPVarInt(i,"playing_casino")-1 == idx) DeletePVar(i,"playing_casino_ex");
}
UpdateBone(idx);
}
else if(itog[1] > -1)
{
new winsum;
winsum = TableInfo[idx][Bank]-floatround(TableInfo[idx][Bank]*(CASINO_WIN_PERCENT+CRUPIE_WIN_PERCENT));
format(string,128,"%s ïîáåæäàåò ñ êîëè÷åñòâîì î÷êîâ: {FFFFFF}%i",pInfo[itog[1]][pName],itog[0]);
if(TableInfo[idx][Crupie] != INVALID_PLAYER_ID) TransferMoney(-1, TableInfo[idx][Crupie], floatround(TableInfo[idx][Bank]*CRUPIE_WIN_PERCENT));
TransferMoney(-1, itog[1], winsum);
GiveBizMoney(73, floatround(TableInfo[idx][Bank]*CASINO_WIN_PERCENT), 0);
SendMes(TableInfo[idx][Crupie], COLOR_LIGHTGREEN, "Â ðåçóëüòàòå ïðîøëîé èãðû âàì áûë âûäàí ïðîöåíò îò ñóììû âûèãðûøà: {FFFFFF}%d$", floatround(TableInfo[idx][Bank]*CRUPIE_WIN_PERCENT));
SendMes(itog[1], COLOR_LIGHTGREEN, "Âàø âûéãðûø: {FFFFFF}+%d$", winsum-TableInfo[idx][Bet]);
TableInfo[idx][GameStart] = 0;
TableInfo[idx][Bet] = 0;
TableInfo[idx][Bank] = 0;
foreach(new i: Player)
{
if(GetPVarInt(i,"playing_casino")-1 == idx)
{
SendClientMessage(i, COLOR_ORANGE, string);
DeletePVar(i,"playing_casino_ex");
}
}
foreach(new i: Player)
{
if(GetPVarInt(i,"playing_casino")-1 == idx && IsPlayerNearTable(i) != idx) ExitBone(i);
}
UpdateBone(idx);
}
return true;
}
Отредактировано пользователем TheRoman
Поделиться сообщением
Ссылка на сообщение