[Ajuda] Alguem me ajuda
#1

Alguem pode achar o erro na linha do pGunLic ta dando
error: 036: empty statement


CMD:comprararma(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010))
{
if((PlayerInfo[playerid][pGunLic]) == 0);
{
SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte.");
return 1;
}
ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair");
}
return 1;
}
Reply
#2

PHP код:
CMD:comprararma(playeridparams[])
{
if(
IsPlayerInRangeOfPoint(playerid2.0312.0516,-166.1417,999.6010))
{
if((
PlayerInfo[playerid][pGunLic]) == 0)
{
SendClientMessage(playerid0xFF8000FF"O atendente da Ammunation se recusa a vender armas sem o porte.");
return 
1;
}
ShowPlayerDialog(playeridDIALOG_MENU_DE_ARMASDIALOG_STYLE_LIST"Menu de armas""Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios""Abrir""Sair");
}
return 
1;

Reply
#3

Agr deu esse erros aki
C:\Users\leonardo\Desktop\New Hunters\BVD\gamemodes\BPS.pwn(56493) : error: 010: invalid function or declaration
C:\Users\leonardo\Desktop\New Hunters\BVD\gamemodes\BPS.pwn(56493) : error: 001: expected token: ";", but found "-identifier-"
C:\Users\leonardo\Desktop\New Hunters\BVD\gamemodes\BPS.pwn(56493) : error: 010: invalid function or declaration
C:\Users\leonardo\Desktop\New Hunters\BVD\gamemodes\BPS.pwn(56493) : error: 010: invalid function or declaration
C:\Users\leonardo\Desktop\New Hunters\BVD\gamemodes\BPS.pwn(56493) : error: 010: invalid function or declaration
C:\Users\leonardo\Desktop\New Hunters\BVD\gamemodes\BPS.pwn(56493) : error: 010: invalid function or declaration
Reply
#4

@edit
PHP код:
CMD:comprararma(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid2.0312.0516,-166.1417,999.6010))
    {
        if(
PlayerInfo[playerid][pGunLic]) == 0) return SendClientMessage(playerid0xFF8000FF"O atendente da Ammunation se recusa a vender armas sem o porte.");
        
ShowPlayerDialog(playeridDIALOG_MENU_DE_ARMASDIALOG_STYLE_LIST"Menu de armas""Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios""Abrir""Sair");
    }
    return 
1;

Reply
#5

Agr deu esse
C:\Users\leonardo\Desktop\New Hunters\BVD\gamemodes\BPS.pwn(56493) : error: 010: invalid function or declaration
C:\Users\leonardo\Desktop\New Hunters\BVD\gamemodes\BPS.pwn(56493) : error: 001: expected token: ";", but found "-identifier-"
Reply
#6

O erro estб dando em qual linha
Reply
#7

CMD:comprararma(playerid,*params[])
Reply
#8

Vocк estб com a include do zcmd em cima do gm?
PHP код:
CMD:comprararma(playerid

    if(
IsPlayerInRangeOfPoint(playerid2.0312.0516,-166.1417,999.6010)) 
    { 
        if(
PlayerInfo[playerid][pGunLic]) == 0) return SendClientMessage(playerid0xFF8000FF"O atendente da Ammunation se recusa a vender armas sem o porte."); 
        
ShowPlayerDialog(playeridDIALOG_MENU_DE_ARMASDIALOG_STYLE_LIST"Menu de armas""Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios""Abrir""Sair"); 
    } 
    return 
1

Reply
#9

estou ss
Reply
#10

PHP код:

CMD
:comprararma(playeridparams[])
{
    
#pragma unused params 
    
    
if(IsPlayerInRangeOfPoint(playerid2.0312.0516,-166.1417,999.6010))
    {
        if(
PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid0xFF8000FF"O atendente da Ammunation se recusa a vender armas sem o porte.");
        
        
ShowPlayerDialog(playeridDIALOG_MENU_DE_ARMASDIALOG_STYLE_LIST"Menu de armas""Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios""Abrir""Sair");
    }
    return 
1;

Reply
#11

Quote:
Originally Posted by Ramires
View Post
PHP Code:

CMD
:comprararma(playeridparams[])
{
    
#pragma unused params 
    
    
if(IsPlayerInRangeOfPoint(playerid2.0312.0516,-166.1417,999.6010))
    {
        if(
PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid0xFF8000FF"O atendente da Ammunation se recusa a vender armas sem o porte.");
        
        
ShowPlayerDialog(playeridDIALOG_MENU_DE_ARMASDIALOG_STYLE_LIST"Menu de armas""Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios""Abrir""Sair");
    }
    return 
1;

Se nгo estб utilizando o parвmetro nгo tem pq colocar essa funзгo й sу apagar xD.
PHP Code:
CMD:comprararma(playerid

    if(
IsPlayerInRangeOfPoint(playerid2.0312.0516,-166.1417,999.6010)) 
    { 
        if(
PlayerInfo[playerid][pGunLic]) == 0) return SendClientMessage(playerid0xFF8000FF"O atendente da Ammunation se recusa a vender armas sem o porte."); 
        
ShowPlayerDialog(playeridDIALOG_MENU_DE_ARMASDIALOG_STYLE_LIST"Menu de armas""Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios""Abrir""Sair"); 
    } 
    return 
1

Reply
#12

resolvi obg gente amo vcs
Reply
#13

Quote:
Originally Posted by DelK
View Post
Se nгo estб utilizando o parвmetro nгo tem pq colocar essa funзгo й sу apagar xD.
PHP Code:
CMD:comprararma(playerid

    if(
IsPlayerInRangeOfPoint(playerid2.0312.0516,-166.1417,999.6010)) 
    { 
        if(
PlayerInfo[playerid][pGunLic]) == 0) return SendClientMessage(playerid0xFF8000FF"O atendente da Ammunation se recusa a vender armas sem o porte."); 
        
ShowPlayerDialog(playeridDIALOG_MENU_DE_ARMASDIALOG_STYLE_LIST"Menu de armas""Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios""Abrir""Sair"); 
    } 
    return 
1

Verdade xD.
Reply
#14

Quote:

CMD:comprararma(playerid, params[])
{
#pragma unused params //
Params pragma nгo utilizados
if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010))
{
if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte.");

ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair");
}
return 1;
}

Nгo manjo mt se nгo ir tente esse:
Quote:

CMD:comprararma(playerid)
{
#pragma unused params //
Params pragma nгo utilizados
if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010))
{
if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte.");

ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair");
}
return 1;
}

Reply
#15

Ele jб resolveu o problema seu demente.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)