[AJUDA] warning 202: number of arguments does not match definition
#1

Bom й assim, hoje comecei a fazer um GM de TDM desde a raiz. E to tendo um problema que nгo consigo resolver!

Avisos:

pawn Code:
D:\Gta San Andreas\Server\gamemodes\Skun.pwn(80) : warning 202: number of arguments does not match definition
D:\Gta San Andreas\Server\gamemodes\Skun.pwn(86) : warning 202: number of arguments does not match definition
OnPlayerConnect:

pawn Code:
public OnPlayerConnect(playerid)
{
    new var1[122];
    new pName[MAX_PLAYER_NAME];
    new pIp[124];
    GetPlayerIp(playerid, pIp, 124);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(var1, 256, "%s (%d) Entrou no Servidor (IP: %s).", pName, playerid, pIp);
    SendClientMessageToAll(0xFFFFFFAA, var1);
    GameTextForPlayer(playerid, "~r~Tuga Generation TDM~n~~g~ Diverte-te!!!", 2500, 5);
   
    SendClientMessage(playerid, 0xFFFF00AA, "•~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~ Bem vindo %s •~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~•", pName);
    SendClientMessage(playerid, 0xFFA500AA,      "• • •               Tuga Generation TDM V1.0 - SA:MP versгo 0.3d                      • • • ");
    SendClientMessage(playerid, -1, "    ");
    SendClientMessage(playerid, 0xFFA500AA,      "• • •           A Staff Tuga Generation agradeзe a tua preferкncia.                   • • • ");
    SendClientMessage(playerid, -1, "    ");
    SendClientMessage(playerid, 0xFFA500AA,      "• • •            Para visualizares alguns comandos usa: /ajuda.                       • • • ");
    SendClientMessage(playerid, 0xFFFF00AA, "•~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~ Bom Jogo %s •~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~•", pName);
    PlayerPlaySound(playerid, 1062, 0, 0, 0);
    return 1;
}
Linha 80:

pawn Code:
SendClientMessage(playerid, 0xFFFF00AA, "•~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~ Bem vindo %s •~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~•", pName);
Linha 86:

pawn Code:
SendClientMessage(playerid, 0xFFFF00AA, "•~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~ Bom Jogo %s •~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~•", pName);
Ajudem pff
+resp quem ajudar
Reply
#2

pawn Code:
public OnPlayerConnect(playerid)
{
    new var1[122], pName[MAX_PLAYER_NAME], pIp[16];

    GetPlayerIp(playerid, pIp, 16);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(var1, 122, "%s (%d) Entrou no Servidor (IP: %s).", pName, playerid, pIp);
    SendClientMessageToAll(0xFFFFFFAA, var1);
    GameTextForPlayer(playerid, "~r~Tuga Generation TDM~n~~g~ Diverte-te!!!", 2500, 5);

    format(var1, 122, "•~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~ Bem vindo %s •~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~•", pName);
    SendClientMessage(playerid, 0xFFFF00AA, var1);
    SendClientMessage(playerid, 0xFFA500AA,      "• • •               Tuga Generation TDM V1.0 - SA:MP versгo 0.3d                      • • • ");
    SendClientMessage(playerid, -1, "    ");
    SendClientMessage(playerid, 0xFFA500AA,      "• • •           A Staff Tuga Generation agradeзe a tua preferкncia.                   • • • ");
    SendClientMessage(playerid, -1, "    ");
    SendClientMessage(playerid, 0xFFA500AA,      "• • •            Para visualizares alguns comandos usa: /ajuda.                       • • • ");
    format(var1, 122, "•~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~ Bom Jogo %s •~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~•", pName);
    SendClientMessage(playerid, 0xFFFF00AA, var1);
    PlayerPlaySound(playerid, 1062, 0, 0, 0);
    return 1;
}
Reply
#3

Vini e seus movimentos ninja *-*
Reply
#4

Quote:
Originally Posted by Viniborn
View Post
pawn Code:
public OnPlayerConnect(playerid)
{
    new var1[122], pName[MAX_PLAYER_NAME], pIp[16];

    GetPlayerIp(playerid, pIp, 16);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(var1, 122, "%s (%d) Entrou no Servidor (IP: %s).", pName, playerid, pIp);
    SendClientMessageToAll(0xFFFFFFAA, var1);
    GameTextForPlayer(playerid, "~r~Tuga Generation TDM~n~~g~ Diverte-te!!!", 2500, 5);

    format(var1, 122, "•~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~ Bem vindo %s •~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~•", pName);
    SendClientMessage(playerid, 0xFFFF00AA, var1);
    SendClientMessage(playerid, 0xFFA500AA,      "• • •               Tuga Generation TDM V1.0 - SA:MP versгo 0.3d                      • • • ");
    SendClientMessage(playerid, -1, "    ");
    SendClientMessage(playerid, 0xFFA500AA,      "• • •           A Staff Tuga Generation agradeзe a tua preferкncia.                   • • • ");
    SendClientMessage(playerid, -1, "    ");
    SendClientMessage(playerid, 0xFFA500AA,      "• • •            Para visualizares alguns comandos usa: /ajuda.                       • • • ");
    format(var1, 122, "•~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~ Bom Jogo %s •~~~~•••~~~~~~~~~~•••~~~~~~~~~~~~~•", pName);
    SendClientMessage(playerid, 0xFFFF00AA, var1);
    PlayerPlaySound(playerid, 1062, 0, 0, 0);
    return 1;
}
Obrigado. Funciou! =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)