[Pomoc] !!!

Započeo Lukenzi, Septembar 01, 2011, 15:27:46 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Treba mi pomoc, jer sam pocetnik u skriptanju, zeleo sam da napravim komandu /kupigun, ali kada sam to uradio izbacilo mi je jedan error,  nesto kao "#endif#" but found "-end of file-"

evo kod od moga FSa, zeleo bih neko to da mi uradi i da nema te jedne greske.

#include <a_samp>

#if defined FILTERSCRIPT

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/kupigun", true) == 0)
    {
       ShowPlayerDialog(playerid, kupovina, DIALOG_STYLE_LIST, "[Kupovina Gunova]", "Deagle [100ammo] ($1500)\nM4 [500ammo] ($4000)\nKnife ($500)\nTec9 [2000ammo] ($10000)\nUzi [2000ammo] ($10000) \nSawn-off [500ammo] ($10000) \nMinigun [500ammo] ($50000)", "Kupi", "Odustani");
       }
   return 1;
    }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == kupovina)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Uspesno ste kupili Deagle!");
    GivePlayerWeapon(playerid,24,100);
    GivePlayerMoney(playerid,-1500);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Uspesno ste kupili M4!");
GivePlayerWeapon(playerid,31,500);
GivePlayerMoney(playerid,-4000);
}
if(listitem == 2)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Uspesno ste kupili Knife!");
GivePlayerWeapon(playerid,4,15);
GivePlayerMoney(playerid,-500);
}}
if(listitem == 3)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Uspesno ste kupili Tec9!");
GivePlayerWeapon(playerid,32,2000);
GivePlayerMoney(playerid,-10000);
}
        if(listitem == 4)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Uspesno ste kupili Uzi!");
GivePlayerWeapon(playerid,28,2000);
GivePlayerMoney(playerid,-23);
}
if(listitem == 5)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Uspesno ste kupili Sawn-off!");
GivePlayerWeapon(playerid,26,500);
GivePlayerMoney(playerid,-10000);
}
if(listitem == 6)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Uspesno ste kupili Fotoaparat!");
GivePlayerWeapon(playerid,38,500);
GivePlayerMoney(playerid,-50000);

Nebi bilo lose da si napisao temu po pravilima.. :)

PING GAMING
Gaming Community

Forum Nickname: Kudrow
Forum Status: Super Moderator
Postova: 50+
Karma: +8/-0
Online serveri: CS 1.6, COD 4
URL Foruma: www.ping-gaming.com
Vlasnik Community-a: Korda



Citat: Kudrow poslato Septembar 01, 2011, 15:31:01 POSLE PODNE
Nebi bilo lose da si napisao temu po pravilima.. :)
Ni tebi nebi bilo lose da procitas pravila
Citat: Zabranjeno je odgovarati na postove ukoliko nekome ne mozete dati savjet ili mu ne mozete pomoci.

OnTopic:

Ispod
#if defined FILTERSCRIPT
probaj dodati
#endif

Ne moze :S
Kada ubacim to #endif , izbaci mi 10 errora :S


Ovo:

C:\Users\LukaiDjole\Desktop\aa.pwn(11) : error 017: undefined symbol "kupovina"
C:\Users\LukaiDjole\Desktop\aa.pwn(13) : warning 217: loose indentation
C:\Users\LukaiDjole\Desktop\aa.pwn(17) : error 017: undefined symbol "kupovina"
C:\Users\LukaiDjole\Desktop\aa.pwn(23) : error 017: undefined symbol "COLOR_LIGHTBLUE"
C:\Users\LukaiDjole\Desktop\aa.pwn(30) : error 017: undefined symbol "COLOR_LIGHTBLUE"
C:\Users\LukaiDjole\Desktop\aa.pwn(36) : error 017: undefined symbol "COLOR_LIGHTBLUE"
C:\Users\LukaiDjole\Desktop\aa.pwn(42) : error 017: undefined symbol "COLOR_LIGHTBLUE"
C:\Users\LukaiDjole\Desktop\aa.pwn(46) : warning 217: loose indentation
C:\Users\LukaiDjole\Desktop\aa.pwn(48) : error 017: undefined symbol "COLOR_LIGHTBLUE"
C:\Users\LukaiDjole\Desktop\aa.pwn(52) : warning 217: loose indentation
C:\Users\LukaiDjole\Desktop\aa.pwn(54) : error 017: undefined symbol "COLOR_LIGHTBLUE"
C:\Users\LukaiDjole\Desktop\aa.pwn(60) : error 017: undefined symbol "COLOR_LIGHTBLUE"
C:\Users\LukaiDjole\Desktop\aa.pwn(63) : error 030: compound statement not closed at the end of file (started at line 60)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

Na vrh dodaj new kupovina;
i definiraj tu boju
#define COLOR_LIGHTBLUE kod_te_boje

kod nadji preko google.com, ovo ostalo neznam

Mikic95

Mislim da bi svi trebali pročitat pravila. Lock.