Započeo Belajac
•15. Jul 2012.[POMOC]Pljacka Banke
578
pregleda
10
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
147
Postovi:
68
Teme:
Pridružio se:Mar. 2012
15. Jul 2012.
Skripta koju koristim:CLRP
Detaljan opis problema: Izlazi mi ovo u pawn
to se odnosi na ovo
Dio skripte:
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
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;
}
}
{
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;
}
}
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
105
Postovi:
2
Teme:
Pridružio se:Jul 2012
15. Jul 2012.
if (strcmp("/robbank", cmdtext, true, 10) == 0)Zaboravio si da stavis zapetu kod "/robbank" (ovde) cmdtext.
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
147
Postovi:
68
Teme:
Pridružio se:Mar. 2012
15. Jul 2012.
Hvala ti,a sad mi se pojavljuje ovo
to se odnosi na 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
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)
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
105
Postovi:
2
Teme:
Pridružio se:Jul 2012
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
147
Postovi:
68
Teme:
Pridružio se:Mar. 2012
15. Jul 2012.
Upalilo je,jos imam ovaj problem
To se odnosi na ovo
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.");
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
105
Postovi:
2
Teme:
Pridružio se:Jul 2012
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
http://forum.sa-mp.com/showthread.php?t=256961
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
105
Postovi:
2
Teme:
Pridružio se:Jul 2012
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
stavi pod pragme
#pragma tabsize 0Nemoj ga uciti tako, nije pametno. Bolje je da sredi kod.
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,519
Postovi:
30
Teme:
Pridružio se:Jun 2010
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. 🙂
I slažem se sa Snookerom da je bolje da se od poÄetka uÄi pisati uredan kod. 🙂
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
105
Postovi:
2
Teme:
Pridružio se:Jul 2012
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava