SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 03/01/2020, 11:22 AM   #1
Andreiko2
Little Clucker
 
Andreiko2's Avatar
 
Join Date: Dec 2019
Location: Ukraine, Poltava
Posts: 3
Reputation: 0
Default Сразу 4 ошибки при добавлении команды

Добрый день!
Помогите пожалуйста, я решил добавить команду, которая изменяет виртуальнй мир игрокам, когда компилирую мод, появляется вот такая картина:



HTML Code:
CMD:setvw(playerid, params[])
{
    if(PlayerInfo[params[%s]][pAdmin] < 3)
        return 1;

    extract params -> new player:target, world; else
        return SendClientMessage(playerid, COLOR_INFO, !"» Используй: {FFFFFF}/setvw (ID) (ID мира) {BEBEBE}| ID: 0(стандартный)");

    if(target == INVALID_PLAYER_ID)
        return SendClientMessage(playerid, COLOR_ERROR, !"» Ошибка: {FFFFFF}игрок оффлайн!");

    if(PlayerInfo[playerid][pAdmin] < PlayerInfo[target][pAdmin])
        return SendClientMessage(playerid, COLOR_ERROR, !"» Ошибка: {FFFFFF}Нельзя изменить мир админу выше вашего уровня!");

    if(!(0 <= world <= 10))
        return SendClientMessage(playerid, COLOR_ERROR, !"» {FFFFFF}Ошибка: {FFFFFF}Макс. 10 миров!");

    new
        str[86 - 4 + MAX_PLAYER_NAME + 2]; // ???? MAX_CHATBUBBLE_LENGTH + 1, если лень считать

    GetPlayerName(playerid, str, MAX_PLAYER_NAME);
    format(str, sizeof str, "» {FFFFFF}Администатор {FFC600}%s {FFFFFF}переместил вас в мир {FFC600}%d ID", str, world);
    SendClientMessage(target, COLOR_INFO, str);

    GetPlayerName(target, str, MAX_PLAYER_NAME);
    format(str, sizeof str, "» {FFFFFF}Вы переместили игрока{FFC600}%s {FFFFFF}в вирт. мир {FFC600}%d ID", str, world);
    SendClientMessage(playerid, COLOR_INFO, str);

    return SetPlayerVirtualWorld(target, world);
}
Помогите пожалуйста, заранее спасибо
Andreiko2 is offline   Reply With Quote
Old 03/01/2020, 11:55 AM   #2
Andreiko2
Little Clucker
 
Andreiko2's Avatar
 
Join Date: Dec 2019
Location: Ukraine, Poltava
Posts: 3
Reputation: 0
Default Re: Сразу 4 ошибки при добавлении команды

Помогите пожалуйста
Andreiko2 is offline   Reply With Quote
Old 03/01/2020, 12:14 PM   #3
bgAndroid
Little Clucker
 
bgAndroid's Avatar
 
Join Date: Apr 2019
Posts: 8
Reputation: 0
Default Re: Сразу 4 ошибки при добавлении команды

PHP Code:
if(PlayerInfo[playerid][pAdmin] < 3
__________________
Kalcor
1. Add https protocol
2. Fix the bug in SetObjectMaterialText when the transparency is set to materialcolor = 10FFFF00 (ARGB), but if you set "12 {ff0000}" the transparency disappears
3. Make saving the radio in the car, let's say the player turned it off, and re-entered the game, it will not play
4. Add parameters fontface and fontsize in Create3DTextLabel analog - (SetObjectMaterialText)
5. Add MoveTextDraw
6. Limit object - 2000
7. TogglePlayerHUD(playerid, component, bool:toggle); // component - 0 - Radar, 1 - Money, 2 - HealthBar, etc.
8. Return grass from gta sa in samp
bgAndroid is offline   Reply With Quote
Old 03/01/2020, 01:07 PM   #4
Andreiko2
Little Clucker
 
Andreiko2's Avatar
 
Join Date: Dec 2019
Location: Ukraine, Poltava
Posts: 3
Reputation: 0
Default Re: Сразу 4 ошибки при добавлении команды

Quote:
Originally Posted by bgAndroid View Post
PHP Code:
if(PlayerInfo[playerid][pAdmin] < 3
Понял, спасибо
Understood, thanks
Andreiko2 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ошибки Yanix Русский/Russian 1 05/08/2019 02:10 PM
Ошибки из-за mxINI Nadim Русский/Russian 4 26/11/2013 05:01 PM
3 или более голосований сразу Nikid Русский/Russian 12 12/08/2012 05:31 AM
Ошибки на сервере. safari Русский/Russian 1 30/01/2012 09:36 AM
Server Shutting Down сразу после запуска Frapsy Русский/Russian 17 23/01/2012 01:49 PM


All times are GMT. The time now is 01:18 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.