Error with command
#6

Ok, updated it to zcmd, here's the script:
#include <zcmd>
#include <a_samp>

#if defined FILTERSCRIPT

new bool:Milestones[MAX_PLAYERS];

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Milestone Sistema");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print("Milestone Sistema");
print("----------------------------------\n");
}

#endif

stock givescore(playerid, ammount)
{
new currentscore;
currentscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, GetPlayerScore(playerid)+ammount);
}

public OnPlayerConnect(playerid)
{
Milestones[playerid] = false;
return 1;
}

CMD:milestone1(playerid, params[])
{
if(GetPlayerMoney(playerid) >= 10000)
{
givescore(playerid, 10);
if(Milestones[playerid]) return SendClientMessage(playerid, -1, "Tu jau atsiemлi рб milestone.");
}
}
return 1;
}

But I get very strange errors:
D:\Documents and Settings\Administrator\Desktop\Sa-Mp Server\Drift Serveris\pawno\include\zcmd.inc(64) : error 017: undefined symbol "funcidx"
D:\Documents and Settings\Administrator\Desktop\Sa-Mp Server\Drift Serveris\pawno\include\zcmd.inc(64) : warning 215: expression has no effect
D:\Documents and Settings\Administrator\Desktop\Sa-Mp Server\Drift Serveris\pawno\include\zcmd.inc(64) : error 001: expected token: ";", but found ")"
D:\Documents and Settings\Administrator\Desktop\Sa-Mp Server\Drift Serveris\pawno\include\zcmd.inc(64) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Administrator\Desktop\Sa-Mp Server\Drift Serveris\pawno\include\zcmd.inc(64) : fatal error 107: too many error messages on one line

I DO NOT EVEN HAVE LINE 64, WHAT THE HELL
Reply


Messages In This Thread
Error with command - by VirtasVarsketis - 21.09.2015, 11:59
Re: Error with command - by IceBilizard - 21.09.2015, 12:22
Re: Error with command - by VirtasVarsketis - 21.09.2015, 12:29
Re: Error with command - by saffierr - 21.09.2015, 12:30
Re: Error with command - by IceBilizard - 21.09.2015, 12:36
Re: Error with command - by VirtasVarsketis - 21.09.2015, 12:37
Re: Error with command - by IceBilizard - 21.09.2015, 12:40
Re: Error with command - by VirtasVarsketis - 21.09.2015, 12:41
Re: Error with command - by IceBilizard - 21.09.2015, 12:47
Re: Error with command - by VirtasVarsketis - 21.09.2015, 12:50

Forum Jump:


Users browsing this thread: 3 Guest(s)