22.03.2014, 11:25
PHP код:
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : warning 215: expression has no effect
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : error 001: expected token: ";", but found "-string-"
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : warning 215: expression has no effect
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : error 001: expected token: ";", but found ")"
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : fatal error 107: too many error messages on one line
PHP код:
format(naslov2, sizeof(naslov2), ""COL_BLUE" Benvenuto"COL_WHITE" %s!", GetName(playerid));
PHP код:
public OnPlayerConnect(playerid)
{
new naslov2[128], text[128], strText[104];
format(strText, 35, USER_FILE, GetName(playerid));
if(!INI_Exists(strText))
{
format(naslov2, sizeof(naslov2), ""COL_BLUE" Benvenuto"COL_WHITE" %s!", GetName(playerid));
format(text, sizeof(text), ""COL_WHITE"______________________________\n\n"COL_BLUE"L'Username"COL_WHITE" %s"COL_BLUE" non ГЁ registrato!\n\nRegistrati!", GetName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, naslov2, text, "Registra", "Esci");
}
else
{
format(naslov2, sizeof(naslov2), ""COL_GREEN" Benvenuto"COL_WHITE" %s!", GetName(playerid));
format(text, sizeof(text),""COL_WHITE"______________________________\n\n"COL_GREEN"L'Username"COL_WHITE" %s"COL_GREEN" ГЁ registrato!\n\nLoggati!", GetName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, naslov2, text, "Login", "Esci");
}
SetPVarInt(playerid, "Joinato", 1);
return 1;
}