09.10.2016, 04:08
PHP код:
error 017: undefined symbol "String"
error:declaration of a local variable must appear in a compound block
codigo:
public OnPlayerRequestClass(playerid, classid)
{
for(new i=0;i<12;i++)
//==============================================================================//
new String[256];
format(String, sizeof(String), CONTAS, getPName(playerid));
//----------------------------------- Camera -----------------------------------//
InterpolateCameraPos(playerid, -699.922546, 2842.857666, 158.912399, -1439.547973, 2794.237304, 130.609405, 10000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, -703.676025, 2840.005615, 157.245697, -1435.400268, 2792.165039, 128.738128, 10000, CAMERA_MOVE);
//------------------------------------------------------------------------------//
if(!DOF2_FileExists(String))
{
format(String, sizeof(String), "Olб %s Parece que vocк nгo й registrado, \nDigite sua senha:", getPName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
return 1;
}
else
{
format(String, sizeof(String), "Olб %s vocк ja й registrado, \nDigite sua senha:", getPName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "LOGIN", String, "Logar", "Voltar");
return 1;
}
}