[ZCMD] Help Please Urgent!
#1

Okay guys, this is my problem.

1. i connect on server and i am ID 0 and i do stuff to myself such as set my level to for example ten. My friend joins and i set his level to ten, but it changes mine still...
2. So i logged in as ID 1 now, and this time myfriend is 0, i change his stats but cant change mine, what might be the problem?

Код:
CMD:setlevel(playerid, params[])
{
    new id;
    new ammount;
    if(PVar[playerid][pLevel] >= 10)
       {
          if(!sscanf(params, "ui", id, ammount))
          {
                new string[64];
                new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                GetPlayerName(id, PlayerName, sizeof(PlayerName));
                format(string, sizeof(string), "%s made you level %d administrator.", name, ammount);
                SendClientMessage(id, COLOR_GREEN, string);
                format(string, sizeof(string), "You've made %s level %d administrator.", PlayerName, ammount);
                SendClientMessage(playerid, COLOR_GREEN, string);
                PVar[id][pLevel] = ammount;
                return 1;
          }
          else return SendClientMessage(playerid, COLOR_RED, "(Usage) /setlevel (ID) (Ammount)");
       }
       else return SendClientMessage(playerid, COLOR_RED, "(Server) You are not an administrator.");
}
Reply
#2

I'm having the same problem from time to time
Some of the commands work but then I restart the server and they mess up just like your problem
If I'm I'd 0 and type a CMOS for any hire it will apply the c d for me I'd 0
Reply
#3

Did you try re-downloading sscanf plugin/include and zcmd include ? - had this problem before, I just re-downloaded them and it worked.
Reply
#4

will it fix the problem or just stop it temperately
Reply
#5

PHP код:
CMD:setlevel(playeridparams[])
{
    new 
id;
    new 
ammount;
    if(
PVar[playerid][pLevel] >= 10)
       {
          if(
sscanf(params"ui"idammount)) {
      
SendClientMessageEx(playerid0xFFFFFFAA"/setlevel [id] [ammount]");
          }
          
                new 
string[64];
                new 
name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnamesizeof(name));
                
GetPlayerName(idPlayerNamesizeof(PlayerName));
                
format(stringsizeof(string), "%s made you level %d administrator."nameammount);
                
SendClientMessage(idCOLOR_GREENstring);
                
format(stringsizeof(string), "You've made %s level %d administrator."PlayerNameammount);
                
SendClientMessage(playeridCOLOR_GREENstring);
                
PVar[id][pLevel] = ammount;
                return 
1;
          }
       else return 
SendClientMessage(playeridCOLOR_RED"(Server) You are not an administrator.");

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)