SA-MP Forums Archive
What the heck? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What the heck? (/showthread.php?tid=131556)



What the heck? - Blokk - 03.03.2010

Код:
C:\Documents and Settings\Desktop\Cops N Robbers\pawno\BAdmin.pwn(66) : error 010: invalid function or declaration
C:\Documents and Settings\Desktop\Cops N Robbers\pawno\BAdmin.pwn(73) : error 025: function heading differs from prototype
C:\Documents and Settings\\Desktop\Cops N Robbers\pawno\BAdmin.pwn(75) : error 017: undefined symbol "PlayerData"
C:\Documents and Settings\Desktop\Cops N Robbers\pawno\BAdmin.pwn(75) : warning 215: expression has no effect
C:\Documents and Settings\Desktop\Cops N Robbers\pawno\BAdmin.pwn(75) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Desktop\Cops N Robbers\pawno\BAdmin.pwn(75) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Desktop\Cops N Robbers\pawno\BAdmin.pwn(75) : fatal error 107: too many error messages on one line
Please give me some insight on where to start.


Re: What the heck? - HydraX - 03.03.2010

Show us the line(s) where the error(s) are.


Re: What the heck? - Blokk - 03.03.2010

Код:
main()
{
  print(" (v1.0) BasicAdmin loaded");
}

#endif

public OnPlayerText(playerid, text)
(
  if(PlayerData[playerid][Muted] == 1)
	{
    SendClientMessage(playerid, COLOR_RED, "You are muted and cannot talk.");
    return 0;
  }
  return true;
}



Re: What the heck? - Blokk - 03.03.2010

All I need to do is fix this and I will be done my script. Please help, I'd be mighty greatful.


Re: What the heck? - AKA_Cross - 03.03.2010

Код:
public OnPlayerText(playerid, text)
"(" << see that? change it to {
  if(PlayerData[playerid][Muted] == 1)
	{
    SendClientMessage(playerid, COLOR_RED, "You are muted and cannot talk.");
    return 0;
  }
  return true;
}



Re: What the heck? - SlashPT - 03.03.2010

this....

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerData[playerid][Muted] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "You are muted and cannot talk.");
        return 0;
    }
    return true;
}



Re: What the heck? - Scenario - 03.03.2010

This is hard to figure out unless we have your whole script, if you want, send me your script/includes/plugins in a PM, and I will take a look.

But This is what I have so far...

Код:
main()
{
  print(" (v1.0) BasicAdmin loaded");
}

#endif

public OnPlayerText(playerid, text[])
{
  if(PlayerData[playerid][Muted] == 1)
	{
    SendClientMessage(playerid, COLOR_RED, "You are muted and cannot talk.");
    return 0;
  }
  return true;
}
You were missing [] after Text.
And had a ( instead of {


Re: What the heck? - SlashPT - 03.03.2010

yeah and i already posted with this...
Quote:
Originally Posted by DarK TeaM PT
this....

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerData[playerid][Muted] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "You are muted and cannot talk.");
        return 0;
    }
    return true;
}



Re: What the heck? - adsy - 03.03.2010

you want a return 1 at the end of main and a return 0 at the end me the other. Return true wont help


Re: What the heck? - Scenario - 03.03.2010

Quote:
Originally Posted by DarK TeaM PT
yeah and i already posted with this...
Quote:
Originally Posted by DarK TeaM PT
this....

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerData[playerid][Muted] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "You are muted and cannot talk.");
        return 0;
    }
    return true;
}
Just helping out too man!