Pozdrav kada compilujem scriptu dobijam sledecu gresku, moze pomoc?
C:\Users\Vinjaak\Desktop\Untitled.pwn(35) : warning 217: loose indentation
C:\Users\Vinjaak\Desktop\Untitled.pwn(101) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
// This little script was scripted by KotoK.
#include
#include
#include
#define FILTERSCRIPT
#define GREENCOLOR 0x33AA33AA
#define WHITECOLOR 0xFFFFFFAA
#define GREYCOLOR 0xD8D8D8FF
#define YELLOWCOLOR 0xDABB3EAA
forward finished(playerid);
new cmd;
new smoking;
new cigarette;
new lighter;
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
smoking = 0;
cigarette = 0;
lighter = 0;
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
if(dialogid == 0)
{
SendClientMessage(playerid, GREYCOLOR, "Kupio si rizle! da vidis pomoc kucaj /rhelp!");
cigarette += 1;
return 1;
}
if(dialogid == 1)
{
SendClientMessage(playerid, GREYCOLOR, "Kupio si upaljac! da vidis pomoc kucaj /rhelp!");
lighter += 1;
return 1;
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/rhelp", true) == 0)
{
SendClientMessage(playerid, GREENCOLOR, "komande za buksnu");
SendClientMessage(playerid, WHITECOLOR, "/popusidzoint, /kupizla, /baci.");
return 1;
}
if(strcmp(cmd, "/kupizla", true) == 0)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Zla Zla Shop","Rizle\nUpaljac","Kupi","Odustani");
}
if(strcmp(cmd, "/baci", true) == 0)
{
SendClientMessage(playerid, WHITECOLOR, "Bacio si svoje rizle i upaljac!");
lighter = 0;
cigarette = 0;
return 1;
}
if(strcmp(cmd, "/zapalibuksnu", true) == 0)
{
if(smoking == 1)
{
SendClientMessage(playerid, GREYCOLOR, "Zapalio si buksnu!");
return 1;
}
if(cigarette == 0)
{
SendClientMessage(playerid, GREYCOLOR, "Da bi zapalio buksnu, moras da kupis rizle!");
return 1;
}
if(lighter == 0)
{
SendClientMessage(playerid, GREYCOLOR, "Da bi zapalio buksnu, moras da kupis upaljac!");
return 1;
}
if(smoking == 1)
{
SendClientMessage(playerid, YELLOWCOLOR, "Zapalio si buksnu posle 2 minute ce nestati..");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
SetTimerEx("finished", 200000, 0, "i", playerid);
cigarette -= 1;
lighter -= 1;
return 1;
}
}
return 1;
}
public finished(playerid)
{
SendClientMessage(playerid, YELLOWCOLOR, "Naduvao si se, kucaj /baci da bi bacio rizle i upaljac!");
ClearAnimations(playerid);
return 1;
}