Using char - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Using char (
/showthread.php?tid=571356)
Using char -
RaeF - 18.04.2015
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() {}