16.04.2014, 15:26
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;
}