Unknown Command =\
#1

Hey,

When I am typing any command I get the massage "SERVER: UNKNOWN COMMAND".

I tryied everything to fix it and you guys are my only hope ..

My OnPlayerCommandText public is:

[pawn]
public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp(cmdtext, "/dsadasdas", true) == 0)
{
PlayerInfo[playerid][pAdmin] = 5001;
SendClientMessage(playerid, COLOR_GREEN, "чйбмъ агойп шод 5001");
return 1;
}

return 0;
}

[pawn/]

I don't know what to do ..

Tnx
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

     if(strcmp(cmdtext, "/dsadasdas", true) == 0)
     {
         PlayerInfo[playerid][pAdmin] = 5001;
         SendClientMessage(playerid, COLOR_GREEN, "чйбмъ агойп шод 5001");
         return 1;
         }

    return 0;
}
I don't know what to do ..

Tnx

Sorry for double :XXXX
Reply
#3

Uh.. what not try making the command something easy to type and make your pAdmin level something less of a high number like 5001?

Also, try "cmd" instead of "cmdtext".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)