Using char
#1

warning 213: tag mismatch at line 19 :
if (g_CoreVar[playerid][e_nlib_func_name_nonunderscore][i] == !'_') g_CoreVar[playerid][e_nlib_func_name_nonunderscore][i] = !' ';

Код:
#include <a_samp>
#include <YSI\y_hooks>

enum e_nlib_func
{
	e_nlib_func_name_underscore[MAX_PLAYER_NAME char],
	e_nlib_func_name_nonunderscore[MAX_PLAYER_NAME char]
};		

new g_CoreVar[MAX_PLAYERS][e_nlib_func];

public OnPlayerConnect(playerid)
{
	GetPlayerName(playerid, g_CoreVar[playerid][e_nlib_func_name_underscore], 24 char);
	strcpy(g_CoreVar[playerid][e_nlib_func_name_nonunderscore], g_CoreVar[playerid][e_nlib_func_name_underscore], 24 char);

	for (new i = 0, len = strlen(g_CoreVar[playerid][e_nlib_func_name_nonunderscore]); i != len; i++)
	{	
		if (g_CoreVar[playerid][e_nlib_func_name_nonunderscore][i] == !'_') g_CoreVar[playerid][e_nlib_func_name_nonunderscore][i] = !' ';
	}
	return 1;
}

main() {}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)