[POMOC]Pljacka Banke

Započeo Belajac
15. Jul 2012.
572
pregleda
10
postova
Belajac
4
Shot Caller
15. Jul 2012.
Skripta koju koristim:CLRP

Detaljan opis problema: Izlazi mi ovo u pawn
Quote
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : error 001: expected token: "-string end-", but found "-identifier-"
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : error 001: expected token: ";", but found ")"
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : error 029: invalid expression, assumed zero
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : fatal error 107: too many error messages on one line

to se odnosi na ovo
Quote
if (strcmp("/robbank" cmdtext, true, 10) == 0)


Dio skripte:
Quote
if (strcmp("/robbank" cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(robbing == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, " You are already robbing the bank, please slow down");
                return 1;
            }
            if(alreadyrobbed == 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
                return 1;
              }
            if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2308.8071,-13.2485,26.7422)) // Change X Y Z to the location you want
            {
                SendClientMessage(playerid, COLOR_GREY, "  You are not at the bank !");
                return 1;
            }
                    SendClientMessage(playerid, COLOR_WHITE, " You started to rob the bank, This will take 10 minutes");
                    SetTimerEx("bankrob", 600000, false, "i", playerid);
                    robbing = 1;
                    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
                    SendClientMessageToAll(COLOR_WHITE, " The bank is currently getting robbed.");
                    SendClientMessageToAll(COLOR_WHITE, " We are currently waiting for the cops");
                    SendClientMessageToAll(COLOR_WHITE, " We will report more when we get more information");
                    SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
                    return 1;
                }
            }
Snooker
4
Shot Caller
15. Jul 2012.
if (strcmp("/robbank", cmdtext, true, 10) == 0)

Zaboravio si da stavis zapetu kod "/robbank" (ovde) cmdtext.
Belajac
4
Shot Caller
15. Jul 2012.
Hvala ti,a sad mi se pojavljuje ovo
Quote
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39470) : error 017: undefined symbol "robbing"
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39470) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39470) : error 001: expected token: ";", but found "]"
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39470) : error 029: invalid expression, assumed zero
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39470) : fatal error 107: too many error messages on one line


to se odnosi na ovo
Quote
  if(robbing == 1)
Snooker
4
Shot Caller
15. Jul 2012.
Pa verovatno nisi definirao varijablu robbing.
Stavi na vrh skripte
new robbing;
Belajac
4
Shot Caller
15. Jul 2012.
Upalilo je,jos imam ovaj problem
Quote
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39487) : warning 217: loose indentation

To se odnosi na ovo
Quote
SendClientMessage(playerid, COLOR_WHITE, "You started to rob the bank! This will take 10 minutes.");
Snooker
4
Shot Caller
15. Jul 2012.
Pa to ti je do stila pisanja kode. Malo poravnaj funkciju i nestace.
http://forum.sa-mp.com/showthread.php?t=256961
Snooker
4
Shot Caller
15. Jul 2012.
Quote from July 15, 2012, 6:56 pm:
to znaci da ti nije u pravilnim linijima kako da ti objasnim moras poravnati
stavi pod pragme
#pragma tabsize 0

Nemoj ga uciti tako, nije pametno. Bolje je da sredi kod.
Belajac
4
Shot Caller
15. Jul 2012.
kakav kod nije mi jasno gde to da smestim
Johnâ„¢
5
Godfather
15. Jul 2012.
Stavi na početak skripte #pragma tabsize 0 ili poravnaj kod kako treba (tutorial možeš naći preko linka koji je postao Snooker).

I slažem se sa Snookerom da je bolje da se od početka uči pisati uredan kod. 🙂
Snooker
4
Shot Caller

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha