new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{ffff66}(INFO) %s (ID %d) has joined the server", name, playerid);
SendClientMessageToAll(-1, string);
new name[MAX_PLAYER][MAX_PLAYER_NAME]; GetPlayerName(playerid, name[playerid], MAX_PLAYER_NAME); format(string, sizeof(string), "{ffff66}(INFO) %s (ID %d) has joined the server", name, playerid); SendClientMessageToAll(-1, string);
Код:
new name[MAX_PLAYER][MAX_PLAYER_NAME]; GetPlayerName(playerid, name[playerid], MAX_PLAYER_NAME); format(string, sizeof(string), "{ffff66}(INFO) %s (ID %d) has joined the server", name, playerid); SendClientMessageToAll(-1, string); |
C:\Users\Wallen\Desktop\Los Santos DeathMatch\gamemodes\DBv1.pwn(722) : error 017: undefined symbol "MAX_PLAYER" C:\Users\Wallen\Desktop\Los Santos DeathMatch\gamemodes\DBv1.pwn(722) : error 036: empty statement C:\Users\Wallen\Desktop\Los Santos DeathMatch\gamemodes\DBv1.pwn(723) : error 017: undefined symbol "name" C:\Users\Wallen\Desktop\Los Santos DeathMatch\gamemodes\DBv1.pwn(723) : warning 215: expression has no effect C:\Users\Wallen\Desktop\Los Santos DeathMatch\gamemodes\DBv1.pwn(723) : error 001: expected token: ";", but found "]" C:\Users\Wallen\Desktop\Los Santos DeathMatch\gamemodes\DBv1.pwn(723) : error 029: invalid expression, assumed zero C:\Users\Wallen\Desktop\Los Santos DeathMatch\gamemodes\DBv1.pwn(723) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
new name[MAX_PLAYERS][MAX_PLAYER_NAME]; GetPlayerName(playerid, name[playerid], MAX_PLAYER_NAME); format(string, sizeof(string), "{ffff66}(INFO) %s (ID %d) has joined the server", name, playerid); SendClientMessageToAll(-1, string);
public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME]; new string[120]; GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"%s has Join the server."); SendClientMessage(playerid,-1,string); return 1; } |