SA-MP Forums Archive
Settings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Settings (/showthread.php?tid=507198)



Settings - Ananisiki - 16.04.2014

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;
}



Re: Settings - park4bmx - 16.04.2014

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


Re: Settings - Jefff - 16.04.2014

string size is not enought