13.09.2010, 16:11
(
Последний раз редактировалось VitalRP; 27.09.2013 в 13:43.
)
I've looked at this and i can't find out why im getting this error
the script warning is apparantly on this line (below command(savedata,)
Now it says that the cmd should return a value, but it says the warning is after the command above (savedata). Here's the command
Any help?
Solved it myself.
Код:
warning 209: function "cmd_listenchat" should return a value
Код:
command(savedata, playerid, params[])
{
Код:
command(listenchat, playerid, params[])
#pragma unused params
if( Player[playerid][AdminLevel] >= 4)
{
if(IsPlayerConnected(playerid))
{
if (!BigEar[playerid])
{
BigEar[playerid] = 1;
return 1;
}
else if (BigEar[playerid])
{
(BigEar[playerid] = 0);
return 1;
}
}
return 1;
}
Solved it myself.


?