F:\Insane Life Brasil 1.1b.pwn(5025) : warning 204: symbol is assigned a value that is never used: "val"
F:\Insane Life Brasil 1.1b.pwn(5100) : warning 204: symbol is assigned a value that is never used: "val"
F:\Insane Life Brasil 1.1b.pwn(6816) : warning 202: number of arguments does not match definition
F:\Insane Life Brasil 1.1b.pwn(11773) : error 021: symbol already defined: "Encrypt"
F:\Insane Life Brasil 1.1b.pwn(11782) : warning 209: function "Encrypt" should return a value
F:\Insane Life Brasil 1.1b.pwn(12042) : error 021: symbol already defined: "ini_GetKey"
F:\Insane Life Brasil 1.1b.pwn(12051) : error 021: symbol already defined: "ini_GetValue"
F:\Insane Life Brasil 1.1b.pwn(39603) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Originally Posted by LeoH
Fiz de tudo e nada acontece!
|
if (strcmp(cmd, "/Logar", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_DBLUE, "::ILB:: Voce ja esta logado.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /Logar [Senha]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
return 1;
}
if (strcmp(cmd, "/login", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_DBLUE, "::ILB:: Voce ja esta logado.");
return 1;
}
ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_INPUT, "LOGIN", "Bem vindo ao Insane Life Brasil, digite sua senha e clique em logar!", "Logar", "Cancelar");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 12345)
{
if(response == 1)
{
new tmppass[64];
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Insane Life","Bem vindo ao Insane Life Brasil, digite sua senha e clique em logar!","Logar","Cancelar");
return 1;
}
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo quis logar, por isso, foi kickado. (:");
Kick(playerid);
}
}
return 0;
}
F:\Insane Life Brasil 1.1b.pwn(11773) : error 021: symbol already defined: "Encrypt"
F:\Insane Life Brasil 1.1b.pwn(12042) : error 021: symbol already defined: "ini_GetKey"
F:\Insane Life Brasil 1.1b.pwn(12051) : error 021: symbol already defined: "ini_GetValue"
// Caso nгo for usar funзхes de /pm apague tambйm:
F:\Insane Life Brasil 1.1b.pwn(39603) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
// Se quiser tirar os warnings de variбvel nгo usada, apague:
F:\Insane Life Brasil 1.1b.pwn(5025) : warning 204: symbol is assigned a value that is never used: "val"
F:\Insane Life Brasil 1.1b.pwn(5100) : warning 204: symbol is assigned a value that is never used: "val"
Originally Posted by LeoH
Nгo fuincionou, vc poderia me explicar como bota Login BOX em um GM?
|