Dio skripte:
stock ImeIgraca(id)
{
new ime[MAX_PLAYER_NAME+1];
GetPlayerName(id, ime, sizeof(ime));
ime[strfind(ime,"_")] = ' '; // OVA LINIJA (1956)
return ime;
}
if(PI == 6)
{
new string;
SetPlayerColor(playerid, ZLATNA);
format(string, sizeof(string), ""C_CRVENA" Vlasnik %s je usao server!", ImeIgraca(playerid)); // LINIJA 3963
SCMTA(-1, string);
SCM(playerid, SVETLOZUTA, "Dobro dosa nazad domacine, koristi /apregled da pratis aktivnost administratora!");
}
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
[18:45:53] Run time error 4: "Array index out of bounds"
[18:45:53] Attempted to read/write array element at negative index -1
[18:45:53] AMX backtrace:
[18:45:53] #0 00041f5c in ImeIgraca (id=0) at D:\SAMP MODOVI\RolePlay od 0 by #Jack\gamemodes\RolePlay.pwn:1956
[18:45:53] #1 000647a8 in ?? (... <5 arguments>) at D:\SAMP MODOVI\RolePlay od 0 by #Jack\gamemodes\RolePlay.pwn:3963
[18:45:53] #2 0000cca8 in public OnDialogResponse (playerid=0, dialogid=0, response=1, listitem=-1, inputtext[]=@010f2918 "sifra") at D:\SAMP MODOVI\RolePlay od 0 by #Jack\pawno\include\YSI\y_hooks/impl.inc:2254
[18:46:38] sscanf warning: Format specifier does not match parameter count.
Slika/video ingame problema(obavezno ako je ingame problem): //
