SA-MP Forums Archive
[Ajuda] Erro Variavel - 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] Erro Variavel (/showthread.php?tid=463041)



Erro Variavel - BaianoIn - 09.09.2013

Ta dando um erro que eu nao to conseguindo resolver aqui.
PHP код:
C:\Users\HOT WHEELS\Music\Desktop\coisas para sa-mp\BCF\BrasilCity Net do Luiz Duarte\GM Brasil City Net\Brasil City net\gamemodes\akinao.pwn(92) : error 052multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

Linha 92
pawn Код:
new Float:cameralogin[30][11] =
{
{1432.6455,-1484.2672,115.2982},
{1359.1316,-1479.9628,38.3516},
{1318.4176,-1183.0083,65.3984},
{1209.0385,-1283.1278,63.5066},
{1098.2290,-1419.8468,55.1848},
{849.2156,-1815.2200,31.7969},
{560.5928,-1646.5659,38.5547},
{270.8804,-1604.9678,114.4163},
{306.4205,-1599.3750,114.4219},
{303.5698,-1624.5554,114.4219}
};// linha 92



Re: Erro Variavel - Dana_scully - 09.09.2013

new Float:cameralogin[30][10]


Re: Erro Variavel - Russo66 - 09.09.2013

pawn Код:
new Float:cameralogin[][] =
{
{1432.6455,-1484.2672,115.2982},
{1359.1316,-1479.9628,38.3516},
{1318.4176,-1183.0083,65.3984},
{1209.0385,-1283.1278,63.5066},
{1098.2290,-1419.8468,55.1848},
{849.2156,-1815.2200,31.7969},
{560.5928,-1646.5659,38.5547},
{270.8804,-1604.9678,114.4163},
{306.4205,-1599.3750,114.4219},
{303.5698,-1624.5554,114.4219}
};



Re: Erro Variavel - Coe1 - 09.09.2013

pawn Код:
new Float:cameralogin[10][3] =
{
{1432.6455,-1484.2672,115.2982},
{1359.1316,-1479.9628,38.3516},
{1318.4176,-1183.0083,65.3984},
{1209.0385,-1283.1278,63.5066},
{1098.2290,-1419.8468,55.1848},
{849.2156,-1815.2200,31.7969},
{560.5928,-1646.5659,38.5547},
{270.8804,-1604.9678,114.4163},
{306.4205,-1599.3750,114.4219},
{303.5698,-1624.5554,114.4219}
};



Re: Erro Variavel - MonFiTy - 10.09.2013

Caso o nъmero de linhas com { } abaixo seja alterado, o nъmero 10 dentro dos primeiros colchetes deve ser substituido pela nova quantidade dessas linhas.

pawn Код:
new Float:cameralogin[10][3] =
{
{1432.6455,-1484.2672,115.2982},
{1359.1316,-1479.9628,38.3516},
{1318.4176,-1183.0083,65.3984},
{1209.0385,-1283.1278,63.5066},
{1098.2290,-1419.8468,55.1848},
{849.2156,-1815.2200,31.7969},
{560.5928,-1646.5659,38.5547},
{270.8804,-1604.9678,114.4163},
{306.4205,-1599.3750,114.4219},
{303.5698,-1624.5554,114.4219}
};