26.08.2009, 22:43
Quote:
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; }
Try this (From Wiki)
Код:
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);