SA-MP Forums Archive
Unknown Command =\ - 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)
+--- Thread: Unknown Command =\ (/showthread.php?tid=409430)



Unknown Command =\ - dorperez - 21.01.2013

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


Re: Unknown Command =\ - dorperez - 21.01.2013

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


Re: Unknown Command =\ - InActtive™ - 21.01.2013

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".