[AJUDA] Erros no GM .
#1

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;
}
Reply
#2

Falta de chaves { ou }
Reply
#3

Mais man eu nem mechi com esse CPS_AddCheckPoint . Eu so Adicionei esse bang de Login aкw .
Reply
#4

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:
pawn Код:
#include <cpstream>
Reply
#5

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
Reply
#6

'--'
Reply
#7

isso й falta de chave } {
Reply
#8

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");
	}
Reply
#9

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");
    }
}
Reply
#10

poe
pawn Код:
new CPS_AddCheckpoint;
no topo do gm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)