[Pomoc] s komandom /kupimats

Započeo 𝓒𝓪𝓼𝓮𝔂, Jun 11, 2013, 15:57:26 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Skripta koju koristim: Moja
Detaljan opis problema: dole je opsrinije napisano
Dio skripte: nie potrebno
Neke slike/video za lakse dobivanje pomoci(neobavezno): / nema


[cenzura]
Poslednja Izmena: Jun 11, 2013, 20:17:03 POSLE PODNE od [EM] Casey
Heaven Community [IN PROGRESS]

evo ti

  if(strcmp(cmd, "/kupimats", true) == 0)
    {
   if(!IsPlayerInRangeOfPoint(playerid,3.0,2453.0596,-1967.2222,13.5539)) return SCM(playerid, COLOR_GRAD1,"{F3FF02} Nisi na mjestu kupovanja materijala");
   if(PlayerInfo[playerid][pMatsVrijeme] > 0) return SCM(playerid, -1, "Pricekaj 30 minuta");
   SPD(playerid, iddialoga, DIALOG_STYLE_INPUT, "kupnja materiala", "upisi koliko zelis kupit materiala", "Kupi", "Odustani");
   return 1;
}


if(dialogid == iddialoga)
{
if(response)
{
new kolicina, string[128];
if(sscanf(inputtext, "i", kolicina))
if(kolicina < 1 || kolicina > 250)
{
        SPD(playerid, DIALOG_SJEME, DIALOG_STYLE_INPUT, "kupnja materiala", "upisi koliko zelis kupit materiala", "Kupi", "Odustani");
        return 1;
}
PlayerInfo[playerid][pMtas] += kolicina;
GivePlayerMoney(playerid, kolicina*10);//npr kupis pet materi.. i to se mnozi sa deset i cijena je 50, sam postavi koliko zelis
format(string, sizeof(string), "Kupio si %d materiala za $%d", kolicina, kolicina*10);
SCM(playerid, -1, string);
PlayerInfo[playerid][pMatsVrijeme] = 30*60;
}
}


ako bude bilo kakvih problema javi se tu
Poslednja Izmena: Jun 11, 2013, 16:06:56 POSLE PODNE od Crazyn3ss
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

evo jesam ali imam 7 errora

C:\Documents and Settings\BEN\Desktop\sranje2.pwn(36305) : error 017: undefined symbol "help"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(36308) : error 017: undefined symbol "iddialoga"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(36313) : error 017: undefined symbol "dialogid"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(36315) : error 017: undefined symbol "response"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(36317) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(36318) : error 017: undefined symbol "inputtext"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(36321) : error 017: undefined symbol "DIALOG_SJEME"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(36324) : error 017: undefined symbol "pMtas"

na ovome zadnjeme vidim da si fula napisati to sam ispravio
a ove ostale pomozi pls
Heaven Community [IN PROGRESS]

ovo stavi di su ti ostale komande

  if(strcmp(cmd, "/kupimats", true) == 0)
    {
   if(!IsPlayerInRangeOfPoint(playerid,3.0,2453.0596,-1967.2222,13.5539)) return SCM(playerid, COLOR_GRAD1,"{F3FF02} Nisi na mjestu kupovanja materijala");
   if(PlayerInfo[playerid][pMatsVrijeme] > 0) return SCM(playerid, -1, "Pricekaj 30 minuta");
   SPD(playerid, 1111, DIALOG_STYLE_INPUT, "kupnja materiala", "upisi koliko zelis kupit materiala", "Kupi", "Odustani");
   return 1;
}




ovo stavi po ondialogresponse


if(dialogid == 1111)
{
if(response)
{
new kolicina, string[128];
if(sscanf(inputtext, "i", kolicina))
if(kolicina < 1 || kolicina > 250)
{
        SPD(playerid, 1111, DIALOG_STYLE_INPUT, "kupnja materiala", "upisi koliko zelis kupit materiala", "Kupi", "Odustani");
        return 1;
}
PlayerInfo[playerid][pMats] += kolicina;
GivePlayerMoney(playerid, kolicina*10);//npr kupis pet materi.. i to se mnozi sa deset i cijena je 50, sam postavi koliko zelis
format(string, sizeof(string), "Kupio si %d materiala za $%d", kolicina, kolicina*10);
SCM(playerid, -1, string);
PlayerInfo[playerid][pMatsVrijeme] = 30*60;
}
}
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

evo stavio sam da se compile pa cu ti reci
Heaven Community [IN PROGRESS]

evo imam jedan warning
e i zaboravio sam ti reci od zadnji put mi je uvek ovaj warn

isprintala su se dva warna

C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27951) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(10788) : warning 204: symbol is assigned a value that is never used: "odbrojavanje"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

ovaj drug je uvek
Heaven Community [IN PROGRESS]

Citat: [EM] Casey poslato Jun 11, 2013, 16:31:42 POSLE PODNE
evo imam jedan warning
e i zaboravio sam ti reci od zadnji put mi je uvek ovaj warn

isprintala su se dva warna

C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27951) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(10788) : warning 204: symbol is assigned a value that is never used: "odbrojavanje"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

ovaj drug je uvek

to obrisi, nigdje ne koristis
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27952) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27953) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27958) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27959) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27960) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(65667) : warning 203: symbol is never used: "odbrojavanje"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Heaven Community [IN PROGRESS]

Citat: [EM] Casey poslato Jun 11, 2013, 16:37:12 POSLE PODNE
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27952) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27953) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27958) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27959) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27960) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(65667) : warning 203: symbol is never used: "odbrojavanje"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Jednostavno definises Kolicina omg

Citat: [LX] BocaBajrovic (Bocilinjo!) poslato Jun 11, 2013, 16:38:16 POSLE PODNE
Citat: [EM] Casey poslato Jun 11, 2013, 16:37:12 POSLE PODNE
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27952) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27953) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27958) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27959) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(27960) : error 017: undefined symbol "kolicina"
C:\Documents and Settings\BEN\Desktop\[cenzura]2.pwn(65667) : warning 203: symbol is never used: "odbrojavanje"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Jednostavno definises Kolicina omg

hahaha jesam ispao glup nisam ni citao erroe samo ih copy paste inace znam ovo resit hahah hvala vam
Heaven Community [IN PROGRESS]



hahah meni postaje smesno resimo se jednih dodju drugi

C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27953) : error 029: invalid expression, assumed zero
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27954) : error 001: expected token: ")", but found "if"
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27954) : error 029: invalid expression, assumed zero
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27954) : error 029: invalid expression, assumed zero
C:\Documents and Settings\BEN\Desktop\sranje2.pwn(27954) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Heaven Community [IN PROGRESS]


Citat: [LX] BocaBajrovic (Bocilinjo!) poslato Jun 11, 2013, 16:45:11 POSLE PODNE
Posalji linije

27953       if(sscanf(inputtext, "i", kolicina))
27954       if(kolicina < 1 || kolicina > 250)
       {
Heaven Community [IN PROGRESS]