Settings
#1

Why this no work

pawn Код:
CMD:settings(playerid, params[])
{
    #pragma unused params
    new string[32];
    static const Opt[][] = {"~g~OFF", "~r~ON"};
    format(string, sizeof(string), "\
    ~y~1 ~w~- Show Teleports - %s~n~\
    ~y~2 ~w~- Allow Goto - %s~n~\
    ~y~3 ~w~- Allow PM - %s"
,Opt[ShowTeles{playerid}], Opt[AllowGoto{playerid}], Opt[AllowPM{playerid}]);
    if(IsPlayerConnected(playerid))
    {
        RemoveAllTextDraws(playerid);
        TextDrawSetString(SettingsText3[playerid], string);
        TextDrawShowForPlayer(playerid, SettingsText0[playerid]);
        TextDrawShowForPlayer(playerid, SettingsText1[playerid]);
        TextDrawShowForPlayer(playerid, SettingsText2[playerid]);
        TextDrawShowForPlayer(playerid, SettingsText3[playerid]);
        TextDrawShowForPlayer(playerid, SettingsText4[playerid]);
        TextDrawShowForPlayer(playerid, SettingsText5[playerid]);
    }
    Settings{playerid} = true;
    return 1;
}
Reply
#2

edit
sleeping
increase the string size.
and do the ShowTeles , AllowGoto return index numbers ?
Reply
#3

string size is not enought
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)