SA-MP Forums Archive
[AJUDA] Й coisa rбpida e simples! kk - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Й coisa rбpida e simples! kk (/showthread.php?tid=262649)



[AJUDA] Й coisa rбpida e simples! kk - Rodrigo. - 18.06.2011

Galera tipo tava tentando criar um menu bem simples[/quando eu falo simples й bem simples mesmo! kk] pro meu gm de DM , mais estб dando o seguinte erro:
PHP код:
error 035argument type mismatch (argument 2
COMANDO:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
new 
cmd[256];
if(
strcmp(cmd"/armas"true) == 0)
{
GetPlayerPos(playerid, -36.0648,2349.6638,24.3026);
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
SendClientMessage(playerid,-1,"MP5 - /MP5");
SendClientMessage(playerid,-1,"AK47 - /AK47");
SendClientMessage(playerid,-1,"9mm - /9mm");
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
SendClientMessage(playerid,-1,"M4 - /M4");
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
else
{
SendClientMessage(playerid,-1,"Vocк nгo estб na area de compra de armas!");
return 
1;

Linha do erro:
PHP код:
GetPlayerPos(playerid, -36.0648,2349.6638,24.3026); 
So isso que eu queria que vocкs resolvessem para mim , porque o resto eu jб sei kkk , coisa mt boba mais to iniciando ainda ;s
Agradeзo desde jб!


Re: [AJUDA] Й coisa rбpida e simples! kk - Ricop522 - 18.06.2011

PHP код:

SetPlayerPos
(playerid, -36.0648,2349.6638,24.3026); 



Re: [AJUDA] Й coisa rбpida e simples! kk - Rodrigo. - 18.06.2011

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
PHP код:

SetPlayerPos
(playerid, -36.0648,2349.6638,24.3026); 
Nгo й um teleporte, quero que ele verifique se o player estб naquela posiзгo '-' ;S


Re: [AJUDA] Й coisa rбpida e simples! kk - RockFire - 18.06.2011

Tenso, muito tenso

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 
{
    if(!
strcmp(cmdtext"/armas"true)) 
    { 
        if(
IsPlayerInRangeOfPoint(playerid,10.0,-36.0648,2349.6638,24.3026)    
        {
            
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); 
            
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!"); 
            
SendClientMessage(playerid,-1,"MP5 - /MP5"); 
            
SendClientMessage(playerid,-1,"AK47 - /AK47"); 
            
SendClientMessage(playerid,-1,"9mm - /9mm"); 
            
SendClientMessage(playerid,-1,"ShotGun - /ShotGun"); 
            
SendClientMessage(playerid,-1,"M4 - /M4"); 
            
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); 
        }
        else 
SendClientMessage(playerid,-1,"ERRO: Vocк nгo estб no local para comprar armas");
        return 
true;
    }
    return 
false;




Re: [AJUDA] Й coisa rбpida e simples! kk - Dark.Angel - 18.06.2011

PHP код:
if(strcmp(cmd"/armas"true) == 0)
{
if(
IsPlayerInRangeOfPoint(playerid5.0, -36.0648,2349.6638,24.3026))
{
    
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
    
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
    
SendClientMessage(playerid,-1,"MP5 - /MP5");
    
SendClientMessage(playerid,-1,"AK47 - /AK47");
    
SendClientMessage(playerid,-1,"9mm - /9mm");
    
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
    
SendClientMessage(playerid,-1,"M4 - /M4");
    
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
else
{
SendClientMessage(playerid,-1,"Vocк nгo estб na area de compra de armas!");
}
return 
1;




Re: [AJUDA] Й coisa rбpida e simples! kk - Ricop522 - 18.06.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
    new cmd[0x3C*3];
    if(strcmp(cmd, "/armas", true) == 0)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 15.0, -36.0648,2349.6638,24.3026)) return SendClientMessage(playerid, -1, "<!> Vocк nгo estб na posiзгo de compra de armas!");
        SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
        SendClientMessage(playerid,-1,"MP5 - /MP5");
        SendClientMessage(playerid,-1,"AK47 - /AK47");
        SendClientMessage(playerid,-1,"9mm - /9mm");
        SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
        SendClientMessage(playerid,-1,"M4 - /M4");
        SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        return 0x01;
    }
    return 0x0;
}
Identado e fixado.


Re: [AJUDA] Й coisa rбpida e simples! kk - Rodrigo. - 18.06.2011

Quote:
Originally Posted by feliperch
Посмотреть сообщение
Tenso, muito tenso

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 
{
    if(!
strcmp(cmdtext"/armas"true)) 
    { 
        if(
IsPlayerInRangeOfPoint(playerid,10.0,-36.0648,2349.6638,24.3026)    
        {
            
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); 
            
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!"); 
            
SendClientMessage(playerid,-1,"MP5 - /MP5"); 
            
SendClientMessage(playerid,-1,"AK47 - /AK47"); 
            
SendClientMessage(playerid,-1,"9mm - /9mm"); 
            
SendClientMessage(playerid,-1,"ShotGun - /ShotGun"); 
            
SendClientMessage(playerid,-1,"M4 - /M4"); 
            
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); 
        }
        else 
SendClientMessage(playerid,-1,"ERRO: Vocк nгo estб no local para comprar armas");
        return 
true;
    }
    return 
false;

Quote:
Originally Posted by Dark.Angel
Посмотреть сообщение
PHP код:
if(strcmp(cmd"/armas"true) == 0)
{
if(
IsPlayerInRangeOfPoint(playerid5.0, -36.0648,2349.6638,24.3026))
{
    
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
    
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
    
SendClientMessage(playerid,-1,"MP5 - /MP5");
    
SendClientMessage(playerid,-1,"AK47 - /AK47");
    
SendClientMessage(playerid,-1,"9mm - /9mm");
    
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
    
SendClientMessage(playerid,-1,"M4 - /M4");
    
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
else
{
SendClientMessage(playerid,-1,"Vocк nгo estб na area de compra de armas!");
}
return 
1;

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
    new cmd[0x3C*3];
    if(strcmp(cmd, "/armas", true) == 0)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 15.0, -36.0648,2349.6638,24.3026)) return SendClientMessage(playerid, -1, "<!> Vocк nгo estб na posiзгo de compra de armas!");
        SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
        SendClientMessage(playerid,-1,"MP5 - /MP5");
        SendClientMessage(playerid,-1,"AK47 - /AK47");
        SendClientMessage(playerid,-1,"9mm - /9mm");
        SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
        SendClientMessage(playerid,-1,"M4 - /M4");
        SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        return 0x01;
    }
    return 0x0;
}
Identado e fixado.
Vlws ai , consegui aqui, mals ai kk, so novato ainda com essas coisas ;s