Messages remains undisplayed.
#1

pawn Код:
CMD:commands(playerid,params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][LoggedIn] && PlayerInfo[playerid][Level] >= 2)
    {
        SendClientMessage(playerid,MANAGEMENT,"--== [ Help ] ==--");
        SendClientMessage(playerid,blue, "For admin commands type:  /ahelp");
        SendClientMessage(playerid,blue, "Account commands are: /register, /login, /changepass, /stats, /resetstats.  Also  /time, /report");
        SendClientMessage(playerid,blue, "There are 4 levels in crew,  are immune from commands");
        SendClientMessage(playerid,blue, "Level 1 is V.I.P. For full information on Levels, see the forums for the \"Levels explained\" guide.");
    }
    else if(PlayerInfo[playerid][LoggedIn] && PlayerInfo[playerid][Level] < 2)
    {
        SendClientMessage(playerid,green, "*** /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid");
        SendClientMessage(playerid,green, "*** /tp /ctp /dive /cardive /taxi /admins /brb /afk");
    }
    else if(PlayerInfo[playerid][LoggedIn] == 0)
    {
        SendClientMessage(playerid,green, "*** Your commands are: /time, /getid     (You are not logged in, log in for more commands)");
    } return 1;
}
The problem is /commands shows only
pawn Код:
SendClientMessage(playerid,green, "*** /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid");
        SendClientMessage(playerid,green, "*** /tp /ctp /dive /cardive /taxi /admins /brb /afk");
    }
Why would that be?.

Next thing

pawn Код:
CMD:level5(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 5)
    {
    SendClientMessage(playerid,MANAGEMENT,"    ---= Level 5 Management Commands =---");
        SendClientMessage(playerid,lightblue,"/unloadfs, /changemode, /gmx");
    }
    return 1;
When this command is executed it says "Unknown command"
I still cannot find a mistake here.

And almost every admin cmd doesnt work, command which are meant for players do work.
Reply
#2

Any one?
Reply
#3

Код:
	if(PlayerInfo[playerid][LoggedIn] && PlayerInfo[playerid][Level] > = 2)

       	if(PlayerInfo[playerid][Level] > = 5)
Hope that works lol/ I'm alittle bit tired.
Reply
#4

Cool, no time to edit and check it right now.
Will check soon and respond. Thanks <3
Reply
#5

That didnt help D:
now it generates these.

pawn Код:
C:\Documents and Settings\Administrator\Desktop\h4s\pawno\include\C-Serial.inc(42) : warning 217: loose indentation
C:\DOCUME~1\ADMINI~1\Desktop\h\GAMEMO~1\h.pwn(2706) : warning 204: symbol is assigned a value that is never used: "file"
C:\DOCUME~1\ADMINI~1\Desktop\h\GAMEMO~1\h.pwn(6289) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ADMINI~1\Desktop\h\GAMEMO~1\h.pwn(6289) : warning 215: expression has no effect
C:\DOCUME~1\ADMINI~1\Desktop\Lh~1\GAMEMO~1\h.pwn(6289) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\ADMINI~1\Desktop\h~1\GAMEMO~1\h.pwn(6289) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ADMINI~1\Desktop\h-WO~1\GAMEMO~1\h.pwn(6289) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
when i tried the codes you posted.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)