29.07.2017, 11:18
Alright first of all code is a mess.
Why would you create a new variable to show another since they are already defined? It makes no sense but we won't blame you now, it's fine but code is a mess and it's confusing.
So this is a basic command that will show your admin level
%i is used to display numbers such as level of XP. STRING - %s is used to display a text, for an example your password or nickname. Float %f is used to display Coords/Health/Armor because float is a number but float is a decimal place (5.554545)
Let's focus on your case @ButlerSmcs
First of all, variables do not match the user stats system. Means pScore (inside that enum) is not affiliated with your code. Look for in your script for something like this:
Paste it here so we can begin with replacing it. Or you can do it alone! If your score variable is named Score instead of pScore in your command replace pScore with Score.
Why would you create a new variable to show another since they are already defined? It makes no sense but we won't blame you now, it's fine but code is a mess and it's confusing.
So this is a basic command that will show your admin level
Код:
CMD: myadminlevel(playerid, params[]) { new string[95]; // slightly increse value of this if some of the stats don't show up format(string,sizeof(string),"My Admin Level is: %i",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, -1, string); return 1; }
Let's focus on your case @ButlerSmcs
First of all, variables do not match the user stats system. Means pScore (inside that enum) is not affiliated with your code. Look for in your script for something like this:
Код:
enum pInfo { pAdmin, }