SA-MP Forums Archive
[ajuda]comando faill - 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]comando faill (/showthread.php?tid=336087)



[ajuda]comando faill - Luiiz - 21.04.2012

o gm compila e tals + quando vo testa da server unknom comand, o q ta errado?
pawn Код:
if(strcmp(cmdtext, "/blindar", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2516.8591,-1465.3214,23.9930)) {
        new vehicleid = GetPlayerVehicleID(playerid);
        CarInfo[vehicleid][cBlindado] = 100;
        GivePlayerMoney(playerid, -5000);
        SendClientMessage(playerid, -1, "Vocк Pagou 5000 Para Blindar seu Veiculo!");
    }
    return 1;
  }



Respuesta: [ajuda]comando faill - leosivi - 21.04.2012

vc esta nessa Pos
PHP код:
2516.8591,-1465.3214,23.9930 
?


Re: [ajuda]comando faill - Lуs - 21.04.2012

pawn Код:
if(strcmp(cmdtext, "/blindar", true) == 0)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2516.8591,-1465.3214,23.9930)) return SendClientMessage(playerid, "Vocк nгo estб no ponto de blindagem");
        new vehicleid = GetPlayerVehicleID(playerid);
        CarInfo[vehicleid][cBlindado] = 100;
        GivePlayerMoney(playerid, -5000);
        SendClientMessage(playerid, -1, "Vocк Pagou 5000 Para Blindar seu Veiculo!");
        return 1;
    }



Re: [ajuda]comando faill - rjjj - 21.04.2012

Essa mensagem estб aparecendo porque o valor da variбvel vehicleid nгo й igual a um нndice vбlido da primeira dimensгo da variбvel array CarInfo :


pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
CarInfo[vehicleid][cBlindado] = 100;


O que estб ocorrendo no cуdigo acima й :


pawn Код:
new x[5];
new y = 7;
x[y] = 2; //"x[y]", durante o processamento, seria igual a "x[7]", uma parte invбlida da array "x".


Espero ter ajudado .


Re: [ajuda]comando faill - Luiiz - 21.04.2012

aff nao arrumou --*


Re: [ajuda]comando faill - Lуs - 21.04.2012

Quote:
Originally Posted by Luiiz
Посмотреть сообщение
aff nao arrumou --*
Leia oque o rjjj disse.


Re: [ajuda]comando faill - Luiiz - 21.04.2012

eu li + nao sei arrumar


Re: [ajuda]comando faill - Lуs - 21.04.2012

Quote:
Originally Posted by Luiiz
Посмотреть сообщение
eu li + nao sei arrumar
https://sampwiki.blast.hk/wiki/Scripting_Basics_PT


Re: [ajuda]comando faill - Luiiz - 21.04.2012

nao entendi nada dae afinal o comando й possivel ou nao?


Re: [ajuda]comando faill - paulor - 21.04.2012

entao posta CarInfo.