What the heck?
#1

Код:
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.
Reply
#2

Show us the line(s) where the error(s) are.
Reply
#3

Код:
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;
}
Reply
#4

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

Код:
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;
}
Reply
#6

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;
}
Reply
#7

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 {
Reply
#8

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;
}
Reply
#9

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

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)