Stringovi i nesto oko tekstova!

Započeo ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ, April 12, 2020, 19:44:26 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem (error/warning): Sve je radilo lepo, ponekad ne radi, nekad se fixa posle reloga, kako to da resim zauvek? U skripti je sve dobro napravljeno bez ikakvih errora.
Dio skripte: //
Debug iz server_log (ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema (obavezno ako je ingame problem): https://imgur.com/a/S9H2AxD
Founder of
Digression Community

posalji celu komandu il preko cega vec ti izbacuje ovaj server dialog

Citat: Attila poslato April 13, 2020, 10:27:34 PRE PODNE
posalji celu komandu il preko cega vec ti izbacuje ovaj server dialog
Evo dialog:
CMD:serverinf( playerid, params[] ) {
    new string[ 250 ];
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
	foreach( Player, i ) {
            format( string, sizeof( string ), ""col_white"Facebook stranica: "col_job"www.facebook.com/digression2k20\n"col_white"Instagram stranica: "col_job"www.instagram.com/digression2k20\n"col_white"Forum: "col_job"www.digression-roleplay.com\n"col_white"TeamSpeak: "col_job"ts.uskoro.com" );
			strcat( DialogStrgEx, string );
	}
	SPD( playerid, 0, DSMSG, ""col_sanm"Server", DialogStrgEx, "Ok", "" );
   	strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
	return 1;
}


A evo onaj pickup:
Create3DandP(""col_red"Centralni Zatvor\n"col_white"Zatvor za sve lakse osudjenike!", -2282.8367, 1916.6860, 8.1210, 0, 0, 1239, 10.0 );
Founder of
Digression Community

Citat: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato April 13, 2020, 16:55:30 POSLE PODNE
Evo dialog:
CMD:serverinf( playerid, params[] ) {
    new string[ 250 ];
    strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
	foreach( Player, i ) {
            format( string, sizeof( string ), ""col_white"Facebook stranica: "col_job"www.facebook.com/digression2k20\n"col_white"Instagram stranica: "col_job"www.instagram.com/digression2k20\n"col_white"Forum: "col_job"www.digression-roleplay.com\n"col_white"TeamSpeak: "col_job"ts.uskoro.com" );
			strcat( DialogStrgEx, string );
	}
	SPD( playerid, 0, DSMSG, ""col_sanm"Server", DialogStrgEx, "Ok", "" );
   	strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
	return 1;
}


A evo onaj pickup:
Create3DandP(""col_red"Centralni Zatvor\n"col_white"Zatvor za sve lakse osudjenike!", -2282.8367, 1916.6860, 8.1210, 0, 0, 1239, 10.0 );

//1 verzija
#define DIALOG_SINFO    20 //ovu brojku promeni prilagodi sebi inace nemoj sve dialoge stavit na 0 jer ce se pomesati kad tad preporuka da koristis enum

//2verzija
enum{
	DIALOG_SINFO
};
//------------------------------------------------------------------------------nemoj ubacivat string kad je nepotrebno jeste da je ovako malo duza linija
CMD:serverinf(playerid, params[])
{
	SPD(playerid, DIALOG_SINFO, DSMG, ""col_sanm"Server", ""col_white"Facebook stranica: "col_job"www.facebook.com/digression2k20\n"col_white"Instagram stranica: "col_job"www.instagram.com/digression2k20\n"col_white"Forum: "col_job"www.digression-roleplay.com\n"col_white"TeamSpeak: "col_job"ts.uskoro.com", "Ok", "");
	return 1;
}

Citat: Attila poslato April 13, 2020, 17:59:38 POSLE PODNE
//1 verzija
#define DIALOG_SINFO    20 //ovu brojku promeni prilagodi sebi inace nemoj sve dialoge stavit na 0 jer ce se pomesati kad tad preporuka da koristis enum

//2verzija
enum{
	DIALOG_SINFO
};
//------------------------------------------------------------------------------nemoj ubacivat string kad je nepotrebno jeste da je ovako malo duza linija
CMD:serverinf(playerid, params[])
{
	SPD(playerid, DIALOG_SINFO, DSMG, ""col_sanm"Server", ""col_white"Facebook stranica: "col_job"www.facebook.com/digression2k20\n"col_white"Instagram stranica: "col_job"www.instagram.com/digression2k20\n"col_white"Forum: "col_job"www.digression-roleplay.com\n"col_white"TeamSpeak: "col_job"ts.uskoro.com", "Ok", "");
	return 1;
}

Hvala brate, nema nikakvih errora, nadam se da ce raditi, jos nije testano, ali hvala! ;)
Founder of
Digression Community