29.06.2018, 23:42
To adaptando um fs pro meu gamemode ai tipo quando boto esse comando ele crasha
PHP код:
CMD:pinchar(playerid);
{
new string[600];
if(!IsPlayerAdmin(playerid)) return SCM(playerid, COLOR_RED3, MSG_CMD_WITHOUT_PERMISSION);
if(Criando[playerid] == false)
{
Texto[playerid] = "Texto",
Fonte[playerid] = "Arial",
CorTexto[playerid] = HexToInt(COLOR_WHITE),
Fundo[playerid] = 0,
Criando[playerid] = true;
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]),GetPlayerFacingAngle(playerid, Pos[3]);
new Float:x = Pos[0] + (5.0 * floatsin(-Pos[3], degrees));
new Float:y = Pos[1] + (5.0 * floatcos(-Pos[3], degrees));
Objeto[playerid] = CreatePlayerObject(playerid, Objeto2[playerid], x, y, Pos[2]+0.5, 0.0, 0.0, Pos[3] - 90.0);
SetPlayerObjectMaterialText(playerid, Objeto[playerid], Texto[playerid], Index[playerid], MSize[playerid],
Fonte[playerid], Size[playerid], Bold[playerid], CorTexto[playerid], Fundo[playerid], Align[playerid]);
EditObject(playerid, Objeto[playerid]);
strcat(string, "Texto\nSize do Material\nFonte\nFonte size\nCor\nDeletar\nMover");
ShowPlayerDialog(playerid, PRINCIPAL, DIALOG_STYLE_LIST, "Menu", string, "Escolher", "Fechar");
}
else
{
SCM(playerid, COLOR_RED3, MSG_CMD_WITHOUT_PERMISSION);
}
return true;
}