Zdravo moze neko pomoc oko paketica

Započeo G0Bl1N, Decembar 27, 2022, 22:12:38 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

]Problem(error/warning): Kada kreiram Pickup i napravim paketic paketic se stvori ali,moze neko pomoci kako da napravim da kada pokupim paketic dobijem novac ili neku nagradu,hvala unapred
Deo skripte:

CMD:paketic(playerid, params[])
{

   new Float:x, Float:y, Float:z;
   if(PlayerInfo [playerid] [xAdmin] < 6) return SendErrorMessage(playerid, "Niste ovlasceni da koristite ovu komandu");
   if(!AdminDuty [playerid]) return SendErrorMessage (playerid, "Da bi koristili ovu komandu morate biti Admin na duznosti");
   GetPlayerPos(playerid, Float:x, Float:y, Float:z );
   CreatePickup(19055, 8, Float:x, Float:y, Float:z ); return SendErrorMessage(playerid, "[SERVER]:Napravili ste paketic");
   

}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Slika/video ingame problema(obavezno ako je ingame problem)://
Poslednja Izmena: Decembar 27, 2022, 22:13:50 POSLE PODNE od Baba_Castello

Nece raditi to tvoje sto si napravio nikako. Probaj ovako samo iskopiraj sve i paste kod tebe u skriptu i radice 1000%. Samo stavi nagrade koje ti zelis ja sam stavio random
[pawn]
#define MAX_GIFTS 500
new giftCounter;
new Gift[MAX_GIFTS];
new Picked[MAX_PLAYERS];
new RandomModel[5][1] =
{
   {19054},
   {19055},
   {19056},
   {19057},
   {19058}
};
CMD:creategift(playerid, params[])
{
   new Float:x, Float:y, Float:z;
   new rand = random(sizeof(RandomModel));
   GetPlayerPos(playerid, x, y, z);
   Gift[giftCounter] = CreateDynamicPickup(RandomModel[rand][0], 1, x + 3, y + 1, z, GetPlayerVirtualWorld(playerid));
   giftCounter++;
   return 1;
}
[/pawn]
I dodaj
[pawn]
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
   for(new i = 0; i < MAX_GIFTS; i++)
   {
      if(pickupid == Gift && Picked[playerid] == 0)
      {
         switch(random(5))
         {
            case 0:
            {
               new rand = (5000 + random(500000));
               g_NovacPlus(playerid, rand);
               SendClientMessage(playerid, -1,,"Pronasli ste pakic i dobili $%s.", KonvertujBroj(rand));
                                        DestroyDynamicPickup(Gift); giftCounter --;
            }
            case 1:
            {
               new rand = (1 + random(20));
               PlayerInfo[playerid][pZlato] += rand;
               SendClientMessage(playerid, -1,,"Pronasli ste pakic i dobili %sg zlata.", KonvertujBroj(rand));
               DestroyDynamicPickup(Gift); giftCounter --;
            }
            case 2:
            {
                                        new rand = (1 + random(20));
                                        PlayerInfo[playerid][pExp] += rand;
               SendClientMessage(playerid, -1,,"Pronasli ste pakic i dobili %s respect upa.", KonvertujBroj(rand));
               DestroyDynamicPickup(Gift); giftCounter --;
            }
            case 3:
            {
                                        PlayerInfo[playerid][pLevel] += 1;
               SendClientMessage(playerid, -1,,"Pronasli ste pakic i dobili LEVEL-UP.");
               DestroyDynamicPickup(Gift); giftCounter --; SetPlayerScore(playerid, PlayerInfo[ playerid ][ pLevel ]);
            }
            case 4:
            {
               if(PlayerInfo[playerid][pVip] == 0)
               {
                                                new rand = (1 + random(3));
                                           PlayerInfo[playerid][pVip] = rand;
                  SendClientMessage(playerid, -1,,"Pronasli ste pakic i dobili VIP LEVEL %s.", KonvertujBroj(rand));
                  DestroyDynamicPickup(Gift); giftCounter --;
               }
               else
               {
                  PlayerInfo[playerid][pLevel] += 1;
                  SendClientMessage(playerid, -1,"Pronasli ste pakic i dobili LEVEL-UP.");
                  DestroyDynamicPickup(Gift); giftCounter --;
               }
            }
         }
      }
   }
   return 1;
}
[/pawn]


Komanda radi ali, imam 25 warninga,kad ukucam komandu server se restarta ne znam do cega je,moze neko pomoci?

resio sam warninge sada imam 11 warninga,ali kad ukucam komandu server se ugasi,moze neko objasniti i pomoci
hvala vam unapred

Citat: G0Bl1N poslato Decembar 27, 2022, 23:54:57 POSLE PODNE
resio sam warninge sada imam 11 warninga,ali kad ukucam komandu server se ugasi,moze neko objasniti i pomoci
hvala vam unapred
posalji warninge

 warning 216: nested comment
warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpDynamicPickupp")
warning 217: loose indentation
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 203: symbol is never used: "AdminInfo"
warning 203: symbol is never used: "InitFly"
warning 203: symbol is never used: "PaketicPickup"
warning 203: symbol is never used: "StartFly"
warning 203: symbol is never used: "StopFly"
warning 203: symbol is never used: "ppon"
Pawn compiler 3.10.4           Copyright (c) 1997-2006, ITB CompuPhase


Ja da sam hteo da platim nekoga za to nebi ja to radio i nebi trazio pomoc

Citat: G0Bl1N poslato Decembar 28, 2022, 09:15:47 PRE PODNE
Ja da sam hteo da platim nekoga za to nebi ja to radio i nebi trazio pomoc
Ne tražiš pomoć nego ceo sistem neko da ti uradi, da je ovaj forum što je nekada bio ti bi bio odavno banovan.

Pročitaj pravila.

Citat: G0Bl1N poslato Decembar 27, 2022, 23:54:57 POSLE PODNE
resio sam warninge sada imam 11 warninga,ali kad ukucam komandu server se ugasi,moze neko objasniti i pomoci
hvala vam unapred

posalji server log
Upwork Skills
Back-end:
• PHP Frameworks (Laravel, Symfony,Codeigniter)
• Python/Django
• Node.js

Front-end:
• HTML
• CSS pre-processing (SASS, LESS)
• Javascript (JQuery, Ajax, Vue, Angular, React, etc.)
• Bootstrap

CMS
• Wordpress (Woocommerce)
• Shopify, Magento

[17:30:02] [debug] Server crashed while executing SMRP1.min1.amx
[17:30:02] [debug] AMX backtrace:
[17:30:02] [debug] #0 native SendClientMessage () from samp-server.exe
[17:30:02] [debug] #1 00802e8c in ?? (... <2 arguments>) at D:\DESKTOP\Server\[BERP] by GOBLIN\Server\gamemodes\BERP1.min1.pwn:44895
[17:30:02] [debug] #2 00013b54 in public OnPlayerPickUpDynamicPickup (playerid=0, pickupid=1097) at C:\Users\RPC\Desktop\BEvolution by V01D\COMPILER V01D\include\YSI\y_hooks/impl.inc:3250
[17:30:02] [debug] Native backtrace:
[17:30:02] [debug] #0 0049dc0c in ?? () from samp-server.exe
[17:30:02] [debug] Registers:
[17:30:02] [debug] EAX: 6e6f7250 EBX: 071cd973 ECX: 7ffffffe EDX: 0019f244
[17:30:02] [debug] ESI: 0019ee90 EDI: 0019f66f EBP: 0019eedc ESP: 0019ee50
[17:30:02] [debug] EIP: 0049dc0c EFLAGS: 00010202
[17:30:02] [debug] Stack:
[17:30:02] [debug] ESP+00000000: 0019f628 0019f228 071cd9d8 000000dc
[17:30:02] [debug] ESP+00000020: 00000000 00000000 00000000 00000000
[17:30:02] [debug] ESP+00000040: 0000001d 00000000 6e6f7250 ffffffff
[17:30:02] [debug] ESP+00000060: 00000001 00000008 00000003 0100007f
[17:30:02] [debug] ESP+00000080: 004b4e08 0100fd4d 000000dc 00000800
[17:30:02] [debug] ESP+000000a0: 000000f1 3334e304 e494c404 17b606f2
[17:30:02] [debug] ESP+000000c0: 00000016 007f0000 00800002 00000001
[17:30:02] [debug] ESP+000000e0: 00000040 07b23430 07b23438 0019f13c
[17:30:02] [debug] ESP+00000100: 77786efc 00010000 007f0270 00000000
[17:30:02] [debug] ESP+00000120: 07b23437 0049d208 004ba810 0019f13c
[17:30:02] [debug] ESP+00000140: 77786efc 000003f8 00000400 00000000
[17:30:02] [debug] ESP+00000160: 00000003 0019efa4 00000000 00000092
[17:30:02] [debug] ESP+00000180: 089c8054 0019f060 7778633f 00000018
[17:30:02] [debug] ESP+000001a0: 29182b7d 0019f0e0 00000000 77789099
[17:30:02] [debug] ESP+000001c0: 00000060 000000d8 000000c2 086a32d8
[17:30:02] [debug] ESP+000001e0: 00000002 00000000 0000001b 00640000
[17:30:02] [debug] ESP+00000200: 00000000 008c0000 00640a38 00000003
[17:30:02] [debug] ESP+00000220: 00000000 00000000 00000000 0019f368
[17:30:02] [debug] ESP+00000240: 0019f0e0 000000c0 00000000 00000000
[17:30:02] [debug] ESP+00000260: 0019f0ec 0049ca9a 0019f0cc 0019f66f
[17:30:02] [debug] ESP+00000280: 7fffffe2 0019f228 00000042 00000000
[17:30:02] [debug] ESP+000002a0: 00490328 0019f228 0019f650 0019f650
[17:30:02] [debug] ESP+000002c0: 00740070 00200065 00200069 777b2dec
[17:30:02] [debug] ESP+000002e0: 00000008 0000000e 777b2bdc 75a323ec
[17:30:02] [debug] ESP+00000300: 0019f17c 07acf480 0000002a 00000000
[17:30:02] [debug] ESP+00000320: 005164c0 b70b8fb4 0019f1a0 00000020
[17:30:02] [debug] ESP+00000340: 7778633f 00000045 00000020 0019f328
[17:30:02] [debug] ESP+00000360: 0019f1c4 00000000 000000b4 00000010
[17:30:02] [debug] ESP+00000380: 777784b1 07adb628 07afe488 00000000
[17:30:02] [debug] ESP+000003a0: 00000002 00820000 008201c0 00000000
[17:30:02] [debug] ESP+000003c0: 00820900 00000000 0019f238 77785e8e
[17:30:02] [debug] ESP+000003e0: 65747320 6b617020 69206369 626f6420
[17:30:02] [debug] Loaded modules:
[17:30:02] [debug] 00400000 - 0052b000 samp-server.exe
[17:30:02] [debug] 77740000 - 778e4000 ntdll.dll
[17:30:02] [debug] 75830000 - 75920000 KERNEL32.DLL
[17:30:02] [debug] 75920000 - 75b3c000 KERNELBASE.dll
[17:30:02] [debug] 75d80000 - 76335000 SHELL32.dll
[17:30:02] [debug] 77650000 - 776cb000 msvcp_win.dll
[17:30:02] [debug] 75b40000 - 75c60000 ucrtbase.dll
[17:30:02] [debug] 765b0000 - 7674d000 USER32.dll
[17:30:02] [debug] 77410000 - 77428000 win32u.dll
[17:30:02] [debug] 75c70000 - 75c94000 GDI32.dll
[17:30:02] [debug] 76c20000 - 76d04000 gdi32full.dll
[17:30:02] [debug] 738b0000 - 738b8000 WSOCK32.dll
[17:30:02] [debug] 75770000 - 7582f000 msvcrt.dll
[17:30:02] [debug] 77240000 - 772a3000 WS2_32.dll
[17:30:02] [debug] 764f0000 - 765ae000 RPCRT4.dll
[17:30:02] [debug] 73eb0000 - 73ed8000 WINMM.dll
[17:30:02] [debug] 76340000 - 76365000 IMM32.DLL
[17:30:02] [debug] 10000000 - 1000f000 sscanf.DLL
[17:30:02] [debug] 75560000 - 75575000 VCRUNTIME140.dll
[17:30:02] [debug] 60bf0000 - 60c40000 crashdetect.DLL
[17:30:02] [debug] 60ac0000 - 60b7f000 MSVCR100.dll
[17:30:02] [debug] 60b80000 - 60be9000 MSVCP100.dll
[17:30:02] [debug] 60a50000 - 60ab2000 streamer.DLL
[17:30:02] [debug] 73ee0000 - 73f4d000 MSVCP140.dll
[17:30:02] [debug] 027b0000 - 027c0000 MapAndreas.DLL
[17:30:02] [debug] 73730000 - 73782000 mswsock.dll
[17:30:02] [debug] 6eb30000 - 6eb41000 napinsp.dll
[17:30:02] [debug] 75ca0000 - 75d16000 sechost.dll
[17:30:02] [debug] 6eb10000 - 6eb26000 pnrpnsp.dll
[17:30:02] [debug] 6eb00000 - 6eb10000 wshbth.dll
[17:30:02] [debug] 6eae0000 - 6eaf6000 NLAapi.dll
[17:30:02] [debug] 75490000 - 754c2000 IPHLPAPI.DLL
[17:30:02] [debug] 754d0000 - 75560000 DNSAPI.dll
[17:30:02] [debug] 773b0000 - 773b7000 NSI.dll
[17:30:02] [debug] 6ead0000 - 6eade000 winrnr.dll
[17:30:02] [debug] 6e7a0000 - 6e7f9000 fwpuclnt.dll
[17:30:02] [debug] 75670000 - 75689000 bcrypt.dll
[17:30:02] [debug] 6eab0000 - 6eab8000 rasadhlp.dll
[17:30:02] [debug] 75d20000 - 75d7f000 bcryptPrimitives.dll

eto