[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 ![Tongue](images/smilies/razz.gif)
:
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
CarInfo[vehicleid][cBlindado] = 100;
O que estб ocorrendo no cуdigo acima й
![afro](images/smilies/mrgreen.gif)
:
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
![Tongue](images/smilies/razz.gif)
.
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 ![Sad](images/smilies/sad.gif)
|
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.