#1

to com umas duvida de como muda o Swaps dos char tipow aparece nos lugar eu fiz o seguinte, peguei as coordenadas de onde eu queria q as personagens apareзгo:
pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
{2035.3627,933.9174,10.3824},
{1917.0191,960.1853,11.443},
{2287.0168,841.7396,14.8149},
{2111.6506,1396.6927,11.5339},
{2027.5769,1343.5494,11.2368},
{2121.9104,1234.3951,11.2131},
{2261.9048,2035.9547,10.8203},
{2262.0986,2398.6572,10.8203},
{2244.2566,2523.7280,10.8203},
{2335.3228,2786.4478,10.8203},
{2150.0186,2734.2297,11.1763},
{2158.0811,2797.5488,10.8203},
{1969.8301,2722.8564,10.8203},
{1652.0555,2709.4072,10.8265},
{1564.0052,2756.9463,10.8203},
{1271.5452,2554.0227,10.8203},
{1441.5894,2567.9099,10.8203},
{1480.6473,2213.5718,11.0234},
{1400.5906,2225.6960,11.0234},
{1598.8419,2221.5676,11.0625},
{1318.7759,1251.3580,10.8203},
{1558.0731,1007.8292,10.8125},
};
as 6 primeiras coordenadas sгo as spawn q eu coloquei entao depois q coloquei as 6 eu deletei as demais ficando:
pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
{2035.3627,933.9174,10.3824},
{1917.0191,960.1853,11.443},
{2287.0168,841.7396,14.8149},
{2111.6506,1396.6927,11.5339},
{2027.5769,1343.5494,11.2368},
{2121.9104,1234.3951,11.2131},
};
apos fazer isso eu fui compilar mais deu o seguinte erro:
Код:
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\gamemodes\lvdm.pwn(38) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\gamemodes\lvdm.pwn(38) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
eu jah tentei varias coisas como troca o [23][3] pra [6][3]
ou seja

desse:
pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
para esse:
pawn Код:
new Float:gRandomPlayerSpawns[6][3] = {
nгo viro nd
jah tentei tbm troca o [23][3] por [23][6]
ou seja desse:
pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
para esse:
pawn Код:
new Float:gRandomPlayerSpawns[23][6] = {
nгo viro nd

eu presiso tira esse outros swap pra personagem ir onde eu marquei pra ir
pq fica muito longe esses swap.
nгo sei mais o q faze

tem como me ajudar?

Reply
#2

cara talvez й pq nao seja ai q vc tenha q mudar tenta procurar algo do tipo setplayerpos..
Reply
#3

tira a vнrgula do ъltimo valor:

ele estб assim:

pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
{2035.3627,933.9174,10.3824},
{1917.0191,960.1853,11.443},
{2287.0168,841.7396,14.8149},
{2111.6506,1396.6927,11.5339},
{2027.5769,1343.5494,11.2368},
{2121.9104,1234.3951,11.2131},
{2261.9048,2035.9547,10.8203},
{2262.0986,2398.6572,10.8203},
{2244.2566,2523.7280,10.8203},
{2335.3228,2786.4478,10.8203},
{2150.0186,2734.2297,11.1763},
{2158.0811,2797.5488,10.8203},
{1969.8301,2722.8564,10.8203},
{1652.0555,2709.4072,10.8265},
{1564.0052,2756.9463,10.8203},
{1271.5452,2554.0227,10.8203},
{1441.5894,2567.9099,10.8203},
{1480.6473,2213.5718,11.0234},
{1400.5906,2225.6960,11.0234},
{1598.8419,2221.5676,11.0625},
{1318.7759,1251.3580,10.8203},
{1558.0731,1007.8292,10.8125},
};
coloque assim e vк se compila normal:

pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
{2035.3627,933.9174,10.3824},
{1917.0191,960.1853,11.443},
{2287.0168,841.7396,14.8149},
{2111.6506,1396.6927,11.5339},
{2027.5769,1343.5494,11.2368},
{2121.9104,1234.3951,11.2131},
{2261.9048,2035.9547,10.8203},
{2262.0986,2398.6572,10.8203},
{2244.2566,2523.7280,10.8203},
{2335.3228,2786.4478,10.8203},
{2150.0186,2734.2297,11.1763},
{2158.0811,2797.5488,10.8203},
{1969.8301,2722.8564,10.8203},
{1652.0555,2709.4072,10.8265},
{1564.0052,2756.9463,10.8203},
{1271.5452,2554.0227,10.8203},
{1441.5894,2567.9099,10.8203},
{1480.6473,2213.5718,11.0234},
{1400.5906,2225.6960,11.0234},
{1598.8419,2221.5676,11.0625},
{1318.7759,1251.3580,10.8203},
{1558.0731,1007.8292,10.8125}
};
se der certo avisa aqui no tуpico
Reply
#4

Quote:
Originally Posted by [SK
Mulek ]
tira a vнrgula do ъltimo valor:

ele estб assim:

pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
{2035.3627,933.9174,10.3824},
{1917.0191,960.1853,11.443},
{2287.0168,841.7396,14.8149},
{2111.6506,1396.6927,11.5339},
{2027.5769,1343.5494,11.2368},
{2121.9104,1234.3951,11.2131},
{2261.9048,2035.9547,10.8203},
{2262.0986,2398.6572,10.8203},
{2244.2566,2523.7280,10.8203},
{2335.3228,2786.4478,10.8203},
{2150.0186,2734.2297,11.1763},
{2158.0811,2797.5488,10.8203},
{1969.8301,2722.8564,10.8203},
{1652.0555,2709.4072,10.8265},
{1564.0052,2756.9463,10.8203},
{1271.5452,2554.0227,10.8203},
{1441.5894,2567.9099,10.8203},
{1480.6473,2213.5718,11.0234},
{1400.5906,2225.6960,11.0234},
{1598.8419,2221.5676,11.0625},
{1318.7759,1251.3580,10.8203},
{1558.0731,1007.8292,10.8125},
};
coloque assim e vк se compila normal:

pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
{2035.3627,933.9174,10.3824},
{1917.0191,960.1853,11.443},
{2287.0168,841.7396,14.8149},
{2111.6506,1396.6927,11.5339},
{2027.5769,1343.5494,11.2368},
{2121.9104,1234.3951,11.2131},
{2261.9048,2035.9547,10.8203},
{2262.0986,2398.6572,10.8203},
{2244.2566,2523.7280,10.8203},
{2335.3228,2786.4478,10.8203},
{2150.0186,2734.2297,11.1763},
{2158.0811,2797.5488,10.8203},
{1969.8301,2722.8564,10.8203},
{1652.0555,2709.4072,10.8265},
{1564.0052,2756.9463,10.8203},
{1271.5452,2554.0227,10.8203},
{1441.5894,2567.9099,10.8203},
{1480.6473,2213.5718,11.0234},
{1400.5906,2225.6960,11.0234},
{1598.8419,2221.5676,11.0625},
{1318.7759,1251.3580,10.8203},
{1558.0731,1007.8292,10.8125}
};
se der certo avisa aqui no tуpico
eu fiz o q vc falo mais nao adianto ocorreu outro erro ocorreu

Код:
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\gamemodes\lvdm.pwn(38) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
eu teria q fazer assim ne?

pawn Код:
new Float:gRandomPlayerSpawns[23][3] = {
{2035.3627,933.9174,10.3824},
{1917.0191,960.1853,11.443},
{2287.0168,841.7396,14.8149},
{2111.6506,1396.6927,11.5339},
{2027.5769,1343.5494,11.2368},
{2121.9104,1234.3951,11.2131}
};
Reply
#5

Agora altere o valor da variavel de 23 para 6.
Reply
#6

ae pessoal deu certo vlw ^^
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)