public OnPlayerConnect(playerid)
{
new string[64], Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nome,MAX_PLAYER_NAME);
format(string,sizeof string,"Criador/Dono/Scripter: DreeH_Knight");
SendClientMessage(0xFFFFFFAA,string);
format(string,sizeof string,"Sub-Dono: LadeN_Knight");
SendClientMessage(0xFFFFFFAA,string);
format(string,sizeof string,"Ajudante De Sub-Dono: Jon_Knight");
SendClientMessage(0xFFFFFFAA,string);
format(string,sizeof string,"Forum: ---");
SendClientMessage(0xFFFFFFAA,string);
format(string,sizeof string,"TeamSpeak: [EM BREVE]");
SendClientMessage(0xFFFFFFAA,string);
format(string,sizeof string,"%s Servidor seja bem vindo ao nosso servidor !",Nome);
SendClientMessage(0xFFFFFFAA,string);
return 1;
}
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(29) : error 035: argument type mismatch (argument 2)
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(31) : error 035: argument type mismatch (argument 2)
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(33) : error 035: argument type mismatch (argument 2)
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(35) : error 035: argument type mismatch (argument 2)
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(37) : error 035: argument type mismatch (argument 2)
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(39) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
pawn Код:
pawn Код:
|
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, 0xFFFFFFAA, "Criador/Dono/Scripter: DreeH_Knight");
SendClientMessage(playerid, 0xFFFFFFAA, "Sub-Dono: LadeN_Knight");
SendClientMessage(playerid, 0xFFFFFFAA, "Ajudante De Sub-Dono: Jon_Knight");
SendClientMessage(playerid, 0xFFFFFFAA, "Forum: ---");
SendClientMessage(playerid, 0xFFFFFFAA, "TeamSpeak: [EM BREVE]");
format(string,sizeof string,"%s Servidor seja bem vindo ao nosso servidor !", sendername);
SendClientMessage(0xFFFFFFAA,string);
native SendClientMessage(playerid, color, const message[]);
SendClientMessage(color, const message[]);
/* Errado: */ format(string, sizeof string, "Sub-Dono: LadeN_Knight");
/* Correto: */ format(string, sizeof(string), "Sub-Dono: LadeN_Knight");
/* Errado: */ SendClientMessage(0xFFFFFFAA, string);
/* Correto: */ SendClientMessage(playerid, 0xFFFFFFAA, string);
public OnPlayerConnect(playerid)
{
new string[64],
Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nome,MAX_PLAYER_NAME);
SendClientMessage(playerid, 0xFFFFFFAA, "Criador/Dono/Scripter: DreeH_Knight");
SendClientMessage(playerid, 0xFFFFFFAA, "Sub-Dono: LadeN_Knight");
SendClientMessage(playerid, 0xFFFFFFAA, "Ajudante De Sub-Dono: Jon_Knight");
SendClientMessage(playerid, 0xFFFFFFAA, ,"Forum: ---");
SendClientMessage(playerid, 0xFFFFFFAA, "TeamSpeak: [EM BREVE]");
format(string, sizeof(string),"%s Servidor seja bem vindo ao nosso servidor !", Nome);
SendClientMessage(playerid, 0xFFFFFFAA, string);
return 1;
}
sizeof й uma funзгo, vocк precisa colocar os () para definir os parametros.
pawn Код:
|
GetPlayerName(playerid, sendername, sizeof(sendername));
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(26) : error 017: undefined symbol "sendername"
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(26) : error 017: undefined symbol "sendername"
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(26) : error 029: invalid expression, assumed zero
C:\Users\Acer\Downloads\[GM] Brasil Knight Games\gamemodes\BKG.pwn(26) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.