public OnPlayerConnect(playerid)
{
new pname[24], string[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "Welcome to Everything World %s!", pname);
SendClientMessage(playerid,COLOR_RED, string);
SendClientMessage(playerid,COLOR_BLUE, "Remeber the server is still in development!.");
new pnamee[24], stringg[128];
GetPlayerName(playerid, pnamee, sizeof(pnamee));
format(stringg, sizeof(stringg), "%s!", pnamee);
SendClientMessage(playerid,COLOR_YELLOW, "[Server] %s has joined the server, Welcome %s !");
return 1;
}
public OnPlayerConnect(playerid)
{
new pname[24],
string[128];
GetPlayerName(playerid,pname,sizeof(pname));
format(string, sizeof(string), "Welcome to Everything World %s!",pname);
SendClientMessage(playerid,COLOR_RED,string);
SendClientMessage(playerid,COLOR_BLUE, "Remeber the server is still in development!.");
GetPlayerName(playerid, pnamee, sizeof(pnamee));
format(string,sizeof(string),"[Servre] %s has joined the server, Welcome %s !.",pnamee,pnamee);
SendClientMessage(playerid,COLOR_YELLOW, string);
return 1;
}
: error 017: undefined symbol "pnamee"
: error 017: undefined symbol "pnamee"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line|
Originally Posted by [mad
MLK (sampx-hosting.co.cc) ]
anyone know why my server crashes after the "Remeber the server is still in development!." Код:
public OnPlayerConnect(playerid)
{
new pname[24], string[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "Welcome to Everything World %s!", pname);
SendClientMessage(playerid,COLOR_RED, string);
SendClientMessage(playerid,COLOR_BLUE, "Remeber the server is still in development!.");
new pnamee[24], stringg[128];
GetPlayerName(playerid, pnamee, sizeof(pnamee));
format(stringg, sizeof(stringg), "%s!", pnamee);
SendClientMessage(playerid,COLOR_YELLOW, "[Server] %s has joined the server, Welcome %s !");
return 1;
}
|
public OnPlayerConnect(playerid)
{
new pnamee[24], stringg[128];
GetPlayerName(playerid, pnamee, sizeof(pnamee));
format(stringg, sizeof(stringg), "%s!", pnamee);
SendClientMessage(playerid,COLOR_YELLOW, "[Server] %s has joined the server, Welcome %s !");
return 1;
}
new pName[MAX_PLAYER_NAME]; new string2[48]; GetPlayerName(playerid, pName, sizeof(pName)); format(string2, sizeof(string2), "%s has joined the server, Welcome %s", pName); SendClientMessageToAll(0xAAAAAAAA, string);