30.09.2017, 14:59
I updated that code last time added more x / y / z + mapicons icons IDS
I saw some of them are visible in game and some are not
I'm calling this Function " LoadCheckPoints(playerid) " when player connect.
mostly server crash when some budy connect.
Alright getting these Errors.
Kindly Point out the mistake +Rep.
I saw some of them are visible in game and some are not
I'm calling this Function " LoadCheckPoints(playerid) " when player connect.
mostly server crash when some budy connect.
Код:
enum loadCP { CpID, Float:CpPos[3], CpStyle }; //these only use for creating mapicons don't needed any where else. new Checkpoint[][loadCP] = { {0 ,{ 2104.6619,-1806.4363,13.5547} , 10}, // Burger SHot {1 ,{ 2400.5032,-1980.1696,13.5469} , 18}, // Ammunation 1 {2 ,{ 2420.5742,-1508.9097,24.0000}, 14}, // Chucking Bill {3 ,{ 2397.5627,-1898.1469,13.5469}, 14}, // Chuckin bell {4 ,{ 1367.7365,-1279.7214,13.5469} , 18}, // Ammunation 2 {5 ,{ 2309.6333,-1643.8372,14.8270} , 17}, // Ten Green Bottles {6 ,{ 1780.8560,-1888.0554,13.3899} , 51}, // Trucking Mission Checkpoints. {7 ,{ 1480.8911,-1770.2833,18.7958}, 52}, // Bank bb {8 ,{ 1553.8971,-1675.6179,16.1953}, 30}, // PD {9 ,{ 1352.2043,-1757.6427,13.5078}, 10}, //rusty {10 ,{ 2351.9075,-1170.1478,28.0495}, 60},//vagos {11 ,{ 2494.2351,-1464.1632,24.0252}, 13}, //bikers {12 ,{ 2486.5684,-1645.4326,14.0772}, 62}, //grove {13 ,{ 1906.1276,-1113.1917,26.6641}, 59}, //ballas {14 ,{ 998.8177,-1131.8588,23.8281}, 61},//Traid {15 ,{ 1692.6678,-2011.8898,14.1228}, 58}, //aztecs {16 ,{ 1940.0051,-2115.9407,13.6953}, 21}, //sex shop in alcornea {17 ,{ 499.5532,-1360.5311,16.3608}, 45}, // zip shop 1 //bug {18 ,{ 454.1046,-1477.9932,30.8133}, 45}, // zip shop 2 {19 ,{ 461.6141,-1500.9153,31.0470}, 45}, // zip shop 3 {20 ,{ 1928.5823,-1776.3777,13.5469}, 17}, //24/7 h idelwood {21 ,{ 2068.5874,-1779.7041,13.5596}, 39}, // tatto icon {22 ,{ 2244.2173,-1665.5173,15.4766}, 45}, // binco idell wood {23 ,{ 1411.5768,-1699.6865,13.5395}, 44}, // cassino idell wood {24 ,{ 2070.7363,-1793.8463,13.5533}, 7}, // Barber shop idelwood {25 ,{ 1877.9336,-1737.0542,13.3292}, 48}, //clup near idelwood {26 ,{ 816.0640,-1386.1920,13.5997}, 48}, // clup 2 {27 ,{ 1976.5411,-2036.6472,13.5469}, 39}, // tatto shop alcornea {28 ,{ 2267.9797,-1671.2150,15.3594}, 7}, // barber shop Galton {29 ,{ 2421.5354,-1219.3513,25.5547}, 48}, // Clup 3 Near jeffrson {30 ,{ 1309.9286,-1368.4442,13.7299}, 44} // Clup 3 Near jeffrson }; LoadCheckPoints(playerid) { for (new i = 0; i < 31 ; i++ ) { SetPlayerMapIcon(playerid,Checkpoint[i][CpID],Checkpoint[i][CpPos][0],Checkpoint[i][CpPos][1],Checkpoint[i][CpPos][2],Checkpoint[i][CpStyle], 0 ); } }
Код:
[15:17:54] [debug] Server crashed while executing GM.amx [15:17:54] [debug] AMX backtrace: [15:17:54] [debug] #0 0001510c in INI_GetEntryText (source[]=@014a0344 "151.254.54.203 = Saleh_Qureshi", dest[]=@0149ffa0 "", i=14) at D:\Game\Samp\pawno\include\YSI\y_ini.inc:398 [15:17:54] [debug] #1 000162d0 in bool:INI_ParseFile (fname[]=@014a09c4 "JLadmin/Logs/aka.ini", remoteFormat[]=@0143e034 "GetAkaLog", bool:bFileFirst=false, bool:bExtra=false, extra=0, bool:bLocal=true, bool:bPassTag=false, bool:bFilter=true, filter[]=@0149cc54 "") at D:\Game\Samp\pawno\include\YSI\y_ini.inc:600 [15:17:54] [debug] #2 000665b8 in public BustAim_OnPlayerConnect (playerid=1) at D:\Game\Samp\gamemodes\GGW.pwn:3030 [15:17:54] [debug] #3 00026d94 in public FC_OnPlayerConnect (playerid=1) at D:\Game\Samp\pawno\include\BustAim.inc:624 [15:17:54] [debug] #4 native CallLocalFunction () from samp03svr [15:17:54] [debug] #5 00023204 in public Itter_OnPlayerConnect (playerid=1) at D:\Game\Samp\pawno\include\FloodControl.inc:68 [15:17:54] [debug] #6 00021270 in public SSCANF_OnPlayerConnect (playerid=1) at D:\Game\Samp\pawno\include\YSI\y_iterate.inc:646 [15:17:54] [debug] #7 0001a9c0 in ?? (... <1 argument>) at D:\Game\Samp\pawno\include\sscanf2.inc:205 [15:17:54] [debug] #8 0000c97c in public MP_OPC (playerid=1) at D:\Game\Samp\pawno\include\YSI\y_hooks/impl.inc:618 [15:17:54] [debug] #9 native CallLocalFunction () from samp03svr [15:17:54] [debug] #10 00003ca0 in public OnPlayerConnect (playerid=1) at D:\Game\Samp\pawno\include\mSelection.inc:432 [15:17:54] [debug] Server crashed while executing GM.amx [15:17:54] [debug] Native backtrace: [15:17:54] [debug] #0 f73abe8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [15:17:54] [debug] #1 f73a4bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [15:17:54] [debug] #2 f73a5dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [15:17:54] [debug] #3 f73a6226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [15:17:54] [debug] #4 f73abadc in ?? () from plugins/crashdetect.so [15:17:54] [debug] #5 f77b6cb0 in ?? () [15:17:54] [debug] #6 f77b6c89 in ?? () [15:17:54] [debug] #7 f7415ea9 in gsignal () from /lib/i386-linux-gnu/libc.so.6 [15:17:54] [debug] #8 f7417407 in abort () from /lib/i386-linux-gnu/libc.so.6 [15:17:54] [debug] #9 f745137c in ?? () from /lib/i386-linux-gnu/libc.so.6 [15:17:54] [debug] #10 f74572f7 in ?? () from /lib/i386-linux-gnu/libc.so.6 [15:17:54] [debug] #11 f7457c31 in ?? () from /lib/i386-linux-gnu/libc.so.6 [15:17:54] [debug] #12 080d3697 in ?? () from ./samp03svr [15:17:54] [debug] #13 0808ebdb in ?? () from ./samp03svr [15:17:54] [debug] #14 08074846 in ?? () from ./samp03svr [15:17:54] [debug] #15 080763fe in ?? () from ./samp03svr [15:17:54] [debug] #16 f778f295 in ?? () from /lib/i386-linux-gnu/libpthread.so.0 [15:17:54] [debug] #17 f74d105e in clone () from /lib/i386-linux-gnu/libc.so.6