Sscanf + LuxAdmin
#1

Hi all , i have a big problem with SSCANF and LuxAdmin , when i haved sscanf 0.3d the LuxAdmin worked normal and now when i maked update at new version ( sscanf 2.8.1 ) LuxAdmin don't work ... it work but the commands don't work , this don't say me nothing ex: Unknown Command or idk what. When i use commands is not happening nothing. What i can do ?


PS: Sorry for my bad englesh.

EDIT: Photos
What command i use:

After i used command:
Reply
#2

Up +....

Hi all , again .

I fout the problem , problem is :

public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(AccInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, red, "Sorry, but, you must be {00BBF6}Logged In{FF0000} to use Commands!");
//--------------------------------------------------------------------------
if(GetPVarInt(playerid, "Jailed") == 1 && AccInfo[playerid][Level] < 10)
{
SendClientMessage(playerid,red,"ERROR: You cannot use commands in Jail!");
return 1;
}
//--------------------------------------------------------------------------
if(GetPVarInt(playerid, "PlayerInDM") == 1 || GetPVarInt(playerid, "PlayerInRace") == 1)
{
if(strcmp(cmdtext, "/leave", true) == 0) return 0;
if(strcmp(cmdtext, "/exitrace", true) == 0) return 0;
if(strcmp(cmdtext, "/stats", true) == 0) return 0;
if(strcmp(cmdtext, "/acmds", true) == 0) return 0;
if(strcmp(cmdtext, "/explode", true) == 0) return 0;
if(strcmp(cmdtext, "/report", true) == 0) return 0;
else GameTextForPlayer(playerid, "~w~Use ~r~/Leave~w~ to leave!", 6000, 4);
return 1;
}
//--------------------------------------------------------------------------
if(AccInfo[playerid][BRBSts] == 1)
{
if(strcmp(cmdtext, "/back", true) == 0) return 0;
else GameTextForPlayer(playerid, "~w~Use ~r~/Back~w~ to return!", 4000, 4);
return 1;
}
return 0;
}

how i can put this in GameMode without problems? If i add this i will can't use commands
Reply
#3

UP

Some1 can help me pls..?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)