Započeo ficabre96
•23. Sep. 2012.• Zaključano[POMOC] Zlato
627
pregleda
13
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
31
Postovi:
12
Teme:
Pridružio se:Dec. 2011
23. Sep. 2012.
Skripta koju koristim:Salvador Evolution RolePlay
Detaljan opis problema:Nasao sam ovo al je puno erora ako moze neko da popravi i da mi kaze sta trebam jos da dodam znam da trebam nesto da dodam u pInfo a ne znam sta?
Deo skripte:
}
if(strcmp(cmd,"/kupizlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
GivePlayerMoney(playerid, -10681);
PlayerInfo += 1;
SendClientMessage(playerid, COLOR_GREY, "Kupili ste 1 gram zlata po ceni od: 10681$.");
return 1;
}
if(strcmp(cmd,"/prodajzlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
GivePlayerMoney(playerid, 10681);
PlayerInfo -= 1;
SendClientMessage(playerid, COLOR_GREY, "Prodali ste 1 gram zlata po ceni od: 10681$.");
return 1;
new stringzlato;
new zlato = PlayerInfo;
TextDrawShowForPlayer(playerid,zlatotext);
format(stringzlato, sizeof(stringzlato),"%s",zlato);
TextDrawSetString(zlatotext,stringzlato);//zlato
Textdraw
zlatotext = TextDrawCreate(540.0000, 132.0000, "zlato:");
TextDrawBackgroundColor(zlatotext, 0x2641FEAA);
TextDrawFont(zlatotext, 2);
TextDrawLetterSize(zlatotext, 0.4600, 1.1000);
TextDrawColor(zlatotext, 0xFC0000FF);
TextDrawSetOutline(zlatotext, 1);
TextDrawSetProportional(zlatotext, 1);
TextDrawSetShadow(zlatotext, 1);
Detaljan opis problema:Nasao sam ovo al je puno erora ako moze neko da popravi i da mi kaze sta trebam jos da dodam znam da trebam nesto da dodam u pInfo a ne znam sta?
Deo skripte:
}
if(strcmp(cmd,"/kupizlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
GivePlayerMoney(playerid, -10681);
PlayerInfo += 1;
SendClientMessage(playerid, COLOR_GREY, "Kupili ste 1 gram zlata po ceni od: 10681$.");
return 1;
}
if(strcmp(cmd,"/prodajzlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
GivePlayerMoney(playerid, 10681);
PlayerInfo -= 1;
SendClientMessage(playerid, COLOR_GREY, "Prodali ste 1 gram zlata po ceni od: 10681$.");
return 1;
new stringzlato;
new zlato = PlayerInfo;
TextDrawShowForPlayer(playerid,zlatotext);
format(stringzlato, sizeof(stringzlato),"%s",zlato);
TextDrawSetString(zlatotext,stringzlato);//zlato
Textdraw
zlatotext = TextDrawCreate(540.0000, 132.0000, "zlato:");
TextDrawBackgroundColor(zlatotext, 0x2641FEAA);
TextDrawFont(zlatotext, 2);
TextDrawLetterSize(zlatotext, 0.4600, 1.1000);
TextDrawColor(zlatotext, 0xFC0000FF);
TextDrawSetOutline(zlatotext, 1);
TextDrawSetProportional(zlatotext, 1);
TextDrawSetShadow(zlatotext, 1);
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
937
Postovi:
22
Teme:
Pridružio se:Mar. 2011
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
31
Postovi:
12
Teme:
Pridružio se:Dec. 2011
23. Sep. 2012.
I sad imam ove erore
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64639) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64646) : error 054: unmatched closing brace ("}")
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64647) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64649) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650) : error 021: symbol already defined: "JBC_GivePlayerMoney"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650) : warning 215: expression has no effect
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650) : error 001: expected token: ";", but found ")"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650 -- 64653) : fatal error 107: too many error messages on one line
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64639) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64646) : error 054: unmatched closing brace ("}")
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64647) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64649) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650) : error 021: symbol already defined: "JBC_GivePlayerMoney"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650) : warning 215: expression has no effect
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650) : error 001: expected token: ";", but found ")"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64650 -- 64653) : fatal error 107: too many error messages on one line
23. Sep. 2012.
if(strcmp(cmd,"/kupizlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
GivePlayerMoney(playerid, -10681);
PlayerInfo += 1;
SendClientMessage(playerid, COLOR_GREY, "Kupili ste 1 gram zlata po ceni od: 10681$.");
return 1;
}
if(strcmp(cmd,"/prodajzlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
GivePlayerMoney(playerid, 10681);
PlayerInfo -= 1;
SendClientMessage(playerid, COLOR_GREY, "Prodali ste 1 gram zlata po ceni od: 10681$.");
return 1;
}
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
31
Postovi:
12
Teme:
Pridružio se:Dec. 2011
23. Sep. 2012.
Idalje ima erora
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64639) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64641) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 021: symbol already defined: "JBC_GivePlayerMoney"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : warning 215: expression has no effect
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 001: expected token: ";", but found ")"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642 -- 64645) : fatal error 107: too many error messages on one line
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64639) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64641) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 021: symbol already defined: "JBC_GivePlayerMoney"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : warning 215: expression has no effect
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 001: expected token: ";", but found ")"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642 -- 64645) : fatal error 107: too many error messages on one line
23. Sep. 2012.
if(strcmp(cmd,"/kupizlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
JBC_GivePlayerMoney(playerid, -10681);
PlayerInfo += 1;
SendClientMessage(playerid, COLOR_GREY, "Kupili ste 1 gram zlata po ceni od: 10681$.");
return 1;
}
if(strcmp(cmd,"/prodajzlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
JBC_GivePlayerMoney(playerid, 10681);
PlayerInfo -= 1;
SendClientMessage(playerid, COLOR_GREY, "Prodali ste 1 gram zlata po ceni od: 10681$.");
return 1;
}
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
31
Postovi:
12
Teme:
Pridružio se:Dec. 2011
23. Sep. 2012.
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64639) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64641) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 021: symbol already defined: "JBC_GivePlayerMoney"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : warning 215: expression has no effect
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 001: expected token: ";", but found ")"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642 -- 64645) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors
Opet ima erora
hteo sam sve sa ovim http://zaslike.com/viewer.php?file=zidgp6jzads4rw9c31a9.jpg
molim vas pomoc treba mi i jel neko zna ovo kao sto je na slici za pare iz banke ocu da mi se vidi nek da pawn kod.
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64641) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 021: symbol already defined: "JBC_GivePlayerMoney"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : warning 215: expression has no effect
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 001: expected token: ";", but found ")"
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642) : error 010: invalid function or declaration
C:\Users\Filip Ludak\Desktop\Serveri\BG-RP Pevac\gamemodes\SE-RP.pwn(64642 -- 64645) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors
Opet ima erora
hteo sam sve sa ovim http://zaslike.com/viewer.php?file=zidgp6jzads4rw9c31a9.jpg
molim vas pomoc treba mi i jel neko zna ovo kao sto je na slici za pare iz banke ocu da mi se vidi nek da pawn kod.
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
31
Postovi:
12
Teme:
Pridružio se:Dec. 2011
23. Sep. 2012.
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
JBC_GivePlayerMoney(playerid, 10681);
A skroz gore sa tim imenom imam ovo #define GivePlayerMoney JBC_GivePlayerMoney
JBC_GivePlayerMoney(playerid, 10681);
A skroz gore sa tim imenom imam ovo #define GivePlayerMoney JBC_GivePlayerMoney
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava