[AJUDA] Й coisa rбpida e simples! kk
#1

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б!
Reply
#2

PHP код:

SetPlayerPos
(playerid, -36.0648,2349.6638,24.3026); 
Reply
#3

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

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;

Reply
#5

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;

Reply
#6

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)