[AJUDA] error 006: must be assigned to an array - 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] error 006: must be assigned to an array (
/showthread.php?tid=135325)
[AJUDA] error 006: must be assigned to an array -
Chivits - 20.03.2010
Galera, devido a conflitos nos menus do FS de corridas YRACE, estou tentando passalo para Dialogs ... porem estou com esse erro do titulo
o erro acontece na linha 6 do cуdigo abaixo ... se alguem puder ajudar.
pawn Код:
if(dialogid == menuvoltas)
{
if(response)
{
new change=0;
change = inputtext; //linha do erro
if(RaceBuilders[playerid] != 0)
{
Blaps[b(playerid)] = change; //tentei por o inputtext aqui, mais deu o mesmo erro
if(Blaps[b(playerid)] < 1) Blaps[b(playerid)] = 1;
}
else
{
Racelaps = change;
if(Racelaps < 1) Racelaps = 1;
}
}
if(!response)
{
}
}
Re: [AJUDA] error 006: must be assigned to an array -
Poderoso Chefгo - 20.03.2010
Quote:
Originally Posted by Chivits
Galera, devido a conflitos nos menus do FS de corridas YRACE, estou tentando passalo para Dialogs ... porem estou com esse erro do titulo
o erro acontece na linha 6 do cуdigo abaixo ... se alguem puder ajudar.
pawn Код:
if(dialogid == menuvoltas) { if(response) { new change=0; change = inputtext; //linha do erro if(RaceBuilders[playerid] != 0) { Blaps[b(playerid)] = change; //tentei por o inputtext aqui, mais deu o mesmo erro if(Blaps[b(playerid)] < 1) Blaps[b(playerid)] = 1; } else { Racelaps = change; if(Racelaps < 1) Racelaps = 1; } } if(!response) { } }
|
no caso o inputtext seria numerico ou texto ?
no caso se for numerico...
pawn Код:
if(dialogid == menuvoltas)
{
if(response)
{
if(RaceBuilders[playerid] != 0)
{
Blaps[b(playerid)] = strval(inputtext);
if(Blaps[b(playerid)] < 1) Blaps[b(playerid)] = 1;
}
else
{
Racelaps = change;
if(Racelaps < 1) Racelaps = 1;
}
}
if(!response)
{
}
}
Re: [AJUDA] error 006: must be assigned to an array -
Chivits - 20.03.2010
Ah sakei , eh numerico sim ... eu suspeitava que tinha que transformar para numerico, mais nao sabia o comando ._.
sу sei em C AJPEOHAEPOAE
Testei aqui, funciono certinho, valeu mano.
Re: [AJUDA] error 006: must be assigned to an array -
Poderoso Chefгo - 21.03.2010
Quote:
Originally Posted by Chivits
Ah sakei , eh numerico sim ... eu suspeitava que tinha que transformar para numerico, mais nao sabia o comando ._.
sу sei em C AJPEOHAEPOAE
Testei aqui, funciono certinho, valeu mano.
|
nгo foi nada vei ^^
vlw vocк!
sempre que tiver duvida venha ao forъm que eu tento ajudar ^^