Question

команда
 

}
CMD:changeaz(playerid, params[])
{
    if(PI[playerid][pAdmin] < 4 || dostup[playerid] == 0return true;
    str_2[0] = EOS;
    format(str_2, sizeof(str_2), "{ffffff}Используйте /changeaz [ 0-%i ]"sizeof(AdminZone)-1);
    extract params -> new adminint; else return SendClientMessage(playerid, COLOR_WHITE, str_2);
    if(!(0 <= adminint <= sizeof(AdminZone))) return SendClientMessage(playerid, COLOR_WHITE, str_2);
    GLS[65] = adminint;

    format(str_2, sizeof(str_2), "[A] %s[%d] изменил админ зону на №%i (%s)",PlayerInfo[playerid][pNames], playerid, AdminZone[adminint][Zone_ID], AdminZone[adminint][Zone_Name]);
    ABroadCast(COLOR_GREY,str_2);
    return true;
}

Помогите решить данные ошибки

C:\Users\COMP\Desktop\Rubin Role Play\gamemodes\mevius.pwn(56369) : error 017: undefined symbol "str_2"
C:\Users\COMP\Desktop\Rubin Role Play\gamemodes\mevius.pwn(56369) : error 001: expected token: ";", but found "]"
C:\Users\COMP\Desktop\Rubin Role Play\gamemodes\mevius.pwn(56369) : error 029: invalid expression, assumed zero
C:\Users\COMP\Desktop\Rubin Role Play\gamemodes\mevius.pwn(56369) : fatal error 107: too many error messages on one line

Share this post


Link to post

1 answer to this question

  • 1
CMD:changeaz(playerid, params[])
{
    if(PI[playerid][pAdmin] < 4 || dostup[playerid] == 0return true;
    new str_2[144]; // str_2[0] = EOS;
    format(str_2, sizeof(str_2), "{ffffff}Используйте /changeaz [ 0-%i ]"sizeof(AdminZone)-1);
    // code ...

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0