[AJUDA] Erros no GM . -
RedBulL_x - 09.08.2011
Estou com alguns erros no GM muca depois de Adicionar Uma funзгo de Login na public OnPlayerConnect
Oque Foi Adicionado .
Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(PlayerInfo[playerid][Logged] == 0){
if(!dini_Exists(file))
{
format(STRX, sizeof(STRX), "Registre-se, %s\n\nDigite uma senha e clique em \"Registrar\".", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "CONTA", STRX, "Registrar", "Sair");
}
else
{
format(STRX, sizeof(STRX), "Bem-vindo(a) de volta, %s\n\nDigite sua senha e clique em \"Logar\".", aname);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "CONTA", STRX, "Logar", "Sair");
}
Sгo 26 Erros todos Iguais, Erros:
C:\Users\micro\Desktop\MUCA.pwn(1672) : error 017: undefined symbol "CPS_AddCheckpoint"
Stock CPS_AddCheckPoint:
Код:
stock CPS_AddCheckpoint(Float:X,Float:Y,Float:Z,Float:size,spawn_dist)
{
new cpid=1;
while(UsedCPSlot[cpid] == 1) cpid++;
if(CPSERVICE_active == 0){
CPSERVICE_active=1;
}
UsedCPSlot[cpid]=1;
Checkpoints[cpid][cpX]=X;
Checkpoints[cpid][cpY]=Y;
Checkpoints[cpid][cpZ]=Z;
Checkpoints[cpid][cpsz]=size;
Checkpoints[cpid][cpsd]=spawn_dist;
return cpid;
}
Re: [AJUDA] Erros no GM . -
RockFire - 09.08.2011
Falta de chaves { ou }
AW: [AJUDA] Erros no GM . -
RedBulL_x - 09.08.2011
Mais man eu nem mechi com esse CPS_AddCheckPoint . Eu so Adicionei esse bang de Login aкw .
Re: [AJUDA] Erros no GM . -
JonathanFeitosa - 09.08.2011
pawn Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(PlayerInfo[playerid][Logged] == 0)
{
if(!dini_Exists(file))
{
format(STRX, sizeof(STRX), "Registre-se, %s\n\nDigite uma senha e clique em \"Registrar\".", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "CONTA", STRX, "Registrar", "Sair");
}
else
{
format(STRX, sizeof(STRX), "Bem-vindo(a) de volta, %s\n\nDigite sua senha e clique em \"Logar\".", aname);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "CONTA", STRX, "Logar", "Sair");
}
}
Baixe a Include:
http://pastebin.com/kmkPjSpU
Ou, se ja tiver, topo do gm:
AW: [AJUDA] Erros no GM . -
RedBulL_x - 09.08.2011
o #include <cpstream> estava em sitaзгo
Код:
//#include <cpstream>
Eu retirei os // e Compilei Apareceu novos Erros .
C:\Users\micro\Desktop\MUCA.pwn(14) : warning 201: redefinition of constant/macro (symbol "MAX_CHECKPOINTS")
C:\Users\micro\Desktop\MUCA.pwn(374) : warning 201: redefinition of constant/macro (symbol "cpinfo")
C:\Users\micro\Desktop\MUCA.pwn(375) : error 021: symbol already defined: "cpX"
C:\Users\micro\Desktop\MUCA.pwn(381) : error 021: symbol already defined: "CPSERVICE_active"
C:\Users\micro\Desktop\MUCA.pwn(382) : error 021: symbol already defined: "Checkpoints"
C:\Users\micro\Desktop\MUCA.pwn(383) : error 021: symbol already defined: "UsedCPSlot"
C:\Users\micro\Desktop\MUCA.pwn(384) : error 021: symbol already defined: "CPSERVICE_actualcp"
C:\Users\micro\Desktop\MUCA.pwn(206
: error 017: undefined symbol "PlayerName"
C:\Users\micro\Desktop\MUCA.pwn(2079) : error 017: undefined symbol "ResetPlayerGrana"
C:\Users\micro\Desktop\MUCA.pwn(2109) : error 017: undefined symbol "PlayerName"
C:\Users\micro\Desktop\MUCA.pwn(2114) : error 079: inconsistent return types (array & non-array)
C:\Users\micro\Desktop\MUCA.pwn(2116) : error 017: undefined symbol "PlayerName"
C:\Users\micro\Desktop\MUCA.pwn(2121) : error 079: inconsistent return types (array & non-array)
C:\Users\micro\Desktop\MUCA.pwn(2155) : error 021: symbol already defined: "aname"
C:\Users\micro\Desktop\MUCA.pwn(2229) : error 079: inconsistent return types (array & non-array)
C:\Users\micro\Desktop\MUCA.pwn(2233) : error 029: invalid expression, assumed zero
C:\Users\micro\Desktop\MUCA.pwn(2233) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\micro\Desktop\MUCA.pwn(2235) : warning 219: local variable "aname" shadows a variable at a preceding level
C:\Users\micro\Desktop\MUCA.pwn(223
: error 017: undefined symbol "function218"
C:\Users\micro\Desktop\MUCA.pwn(2240) : error 017: undefined symbol "vehicleid"
C:\Users\micro\Desktop\MUCA.pwn(2243) : error 079: inconsistent return types (array & non-array)
C:\Users\micro\Desktop\MUCA.pwn(2244) : error 079: inconsistent return types (array & non-array)
C:\Users\micro\Desktop\MUCA.pwn(2247) : warning 225: unreachable code
C:\Users\micro\Desktop\MUCA.pwn(2247) : error 029: invalid expression, assumed zero
C:\Users\micro\Desktop\MUCA.pwn(2247) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\micro\Desktop\MUCA.pwn(2255) : error 079: inconsistent return types (array & non-array)
C:\Users\micro\Desktop\MUCA.pwn(2260) : error 079: inconsistent return types (array & non-array)
C:\Users\micro\Desktop\MUCA.pwn(2269) : error 079: inconsistent return types (array & non-array)
C:\Users\micro\Desktop\MUCA.pwn(2272) : warning 225: unreachable code
C:\Users\micro\Desktop\MUCA.pwn(2272) : error 029: invalid expression, assumed zero
C:\Users\micro\Desktop\MUCA.pwn(2272) : error 004: function "OnPlayerDisconnect" is not implemented
AW: [AJUDA] Erros no GM . -
RedBulL_x - 09.08.2011
'--'
Re: [AJUDA] Erros no GM . -
JonathanFeitosa - 09.08.2011
isso й falta de chave } {
Respuesta: [AJUDA] Erros no GM . -
RedBulL_x - 09.08.2011
Putz ele compilava normal eu Sу coloquei um codezinho e tireo o cpstream da sitaзгo, e da tantos erros assim, tenso -.-
Coloquei sу isso, porque quando entrava nao aparecia a Box De Login .
Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(PlayerInfo[playerid][Logged] == 0){
if(!dini_Exists(file))
{
format(STRX, sizeof(STRX), "Registre-se, %s\n\nDigite uma senha e clique em \"Registrar\".", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "CONTA", STRX, "Registrar", "Sair");
}
else
{
format(STRX, sizeof(STRX), "Bem-vindo(a) de volta, %s\n\nDigite sua senha e clique em \"Logar\".", aname);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "CONTA", STRX, "Logar", "Sair");
}
Re: [AJUDA] Erros no GM . -
JonathanFeitosa - 09.08.2011
pawn Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(PlayerInfo[playerid][Logged] == 0)
{
if(!dini_Exists(file))
{
format(STRX, sizeof(STRX), "Registre-se, %s\n\nDigite uma senha e clique em \"Registrar\".", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "CONTA", STRX, "Registrar", "Sair");
}
else
{
format(STRX, sizeof(STRX), "Bem-vindo(a) de volta, %s\n\nDigite sua senha e clique em \"Logar\".", aname);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "CONTA", STRX, "Logar", "Sair");
}
}
Re: [AJUDA] Erros no GM . -
Skoll - 09.08.2011
poe
no topo do gm