[AJUDA] Comando para ADM abastecer
#1

Boa tarde galera, estou com um problema aki. Estou editando a GM LAC e estou tentando criar um comando para que um ADMIN possa abastecer um veiculo (OBS: Nгo й abastecer por ID, й o veiculo que o ADM estiver dentro), mas ja tentei varias coisas e toda vez da erro, nгo sei mais oq fazer
Caso algum de vocкs conseguirem me ajudar eu fico muito grato

Este й os erros que estб dando:
Код:
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(2745) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(2774) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(2958) : error 017: undefined symbol "pNome"
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(2966) : error 017: undefined symbol "pNome"
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3244) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3248) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3252) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3256) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3260) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3264) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3268) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3272) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3277) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3281) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3285) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3292) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3296) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3301) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3305) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3309) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3314) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3319) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3331) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3335) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3339) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(3343) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
E esse й o codigo que eu criei:
Код:
	if(strcmp(cmd, "/abastecerid", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] < 4)
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "   Voce nao tem permissao para usar esse comando!");
			    return 1;
			}
			if(PlayerInfo[playerid][pTrampo] < 1)
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta trabalhando, use /profadmin para trabalhar!");
			{
			if(IsPlayerInAnyVehicle(playerid))
			{
			    GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Abastecendo o Veiculo, Espere um Momento",2000,3);
				SetTimer("Fillup",RefuelWait,0);
				Refueling[playerid] = 1;
			}
		}
    	return 1;
	}
Reply
#2

pawn Код:
if(strcmp(cmd, "/abastecerid", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce nao tem permissao para usar esse comando!");
                return 1;
            }
            if(PlayerInfo[playerid][pTrampo] < 1)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta trabalhando, use /profadmin para trabalhar!");
            {
            if(IsPlayerInAnyVehicle(playerid))
            {
                GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Abastecendo o Veiculo, Espere um Momento",2000,3);
                SetTimer("Fillup",RefuelWait,0);
                Refueling[playerid] = 1;
            }
        }
    }
    return 1;
}
Vocк havia esquecido de fechar uma chave.
Reply
#3

Gustavo, eu coloquei o codigo que vocк me enviou e continua dando os mesmos erros
Mas agradeзo muito pela sua intenзгo de me ajudar
Reply
#4

pawn Код:
if(strcmp(cmd, "/abastecerid", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce nao tem permissao para usar esse comando!");
                return 1;
            }
            if(PlayerInfo[playerid][pTrampo] < 1)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta trabalhando, use /profadmin para trabalhar!");
            }
            if(IsPlayerInAnyVehicle(playerid))
            {
                GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Abastecendo o Veiculo, Espere um Momento",2000,3);
                SetTimer("Fillup",RefuelWait,0);
                Refueling[playerid] = 1;
            }
        }
    }
    return 1;
}
Reply
#5

pawn Код:
if(strcmp(cmd, "/abastecerid", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] < 4)
        {
            SendClientMessage(playerid, COLOR_GRAD1, "   Voce nao tem permissao para usar esse comando!");
            return 1;
        }
        if(PlayerInfo[playerid][pTrampo] < 1)
        {
            SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta trabalhando, use /profadmin para trabalhar!");
            return 1;
        }
        if(IsPlayerInAnyVehicle(playerid))
        {
            GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Abastecendo o Veiculo, Espere um Momento",2000,3);
            SetTimer("Fillup",RefuelWait,0);
            Refueling[playerid] = 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta em um veiculo!");
            return 1;
        }
    }
    return 1;
}
Reply
#6

FireCat com o seu codigo o pawno deu crash e TiagoPS com o seu codigo compilou mas ele deu o seguinte warning:
pawn Код:
C:\Users\Marcelo\Documents\GameMode\Brasil Play RolePlay\gamemodes\BPR.pwn(40720) : warning 213: tag mismatch
A linha que deu o warning foi essa:
pawn Код:
if(PlayerInfo[playerid][pTrampo] < 1)
Agradeзo desde jб pela grande ajuda que vocкs me deram
Reply
#7

tenta esse aki
PHP код:
if(strcmp(cmd"/abastecerid"true) == 0)
{
    if(
IsPlayerConnected(playerid))
    {
        if(
PlayerInfo[playerid][pAdmin] < 4)
        {
            
SendClientMessage(playeridCOLOR_GRAD1"   Voce nao tem permissao para usar esse comando!");
            return 
1;
        }
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Abastecendo o Veiculo, Espere um Momento",2000,3);
            
SetTimer("Fillup",RefuelWait,0);
            
Refueling[playerid] = 1;
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GRAD1"   Vocк nгo esta em um veiculo!");
            return 
1;
        }
    }
    return 
1;

Reply
#8

lucas_mdr1235 o seu codigo funcinou perfeito , muito obrigado a todos !! Caso algum de vocкs precisem da minha ajuda й sу dizer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)