03.04.2010, 21:30
Gente, como que eu faзo pra quando um player entrar no jogo aparecer uma mensagem dizendo [Nome da pessoa] Entrou no jogo.?
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Logou no Servidor ", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s Entrou No Server", pName);
SendClientMessageToAll(COR_AZUL,string);
new PlayerName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s saiu do servidor . (Internet Podre)", PlayerName);
case 1: format(string, sizeof(string), "%s saiu do servidor . (Conta Prуpria)", PlayerName);
case 2: format(string, sizeof(string), "%s saiu do servidor . (Kickado/Banido)", PlayerName);
}
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
Originally Posted by _.Paniico._
public OnPlayerConnect(playerid)
pawn Код:
|
C:\Documents and Settings\•~Ma†eus'\Desktop\R7\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\•~Ma†eus'\Desktop\R7\pawno\include\utils.inc(93) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1674) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1710) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1766) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1776) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1795) : error 035: argument type mismatch (argument 2) C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1805) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1824) : error 035: argument type mismatch (argument 2) C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1874) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(1974) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2057) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2149) : warning 219: local variable "string" shadows a variable at a preceding level C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2434) : error 017: undefined symbol "pName" C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2435) : error 021: symbol already defined: "format" C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2445) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2446) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2450) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2454) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2458) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2462) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2466) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2470) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2474) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2478) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2482) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2486) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2490) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2494) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2498) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2502) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2506) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2510) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2514) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2518) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2522) : error 010: invalid function or declaration C:\DOCUME~1\~MAEUS~1\Desktop\R8\GAMEMO~1\V.pwn(2526) : error 010: invalid function or declaration Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Originally Posted by _.Paniico._
Kra um aviso , o meu NAO ESTA FALTANDO linha , no MEU Gm Esta assim e ta funcionamento , meu GM nao tem nenhum Warning
|
Originally Posted by andmeida10
Quote:
|
new string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s Entrou No Server", pName);
SendClientMessageToAll(COR_AZUL,string);