#1

To com esse erro na hora que compilo o gm nгo sei pq ta dando se alguem poder ajudar agradeзo

Код:
public OnPlayerSpawn(playerid)
{
>>linha 241     new rand = random(sizeof(RandomSpawns));
>>linha 242                      SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]);
   return 1;
}
>> linha 241 error 017: undefined symbol "RandomSpawns"
>> linha 241 error 029: invalid expression, assumed zero
>> linha 241 warning 215: expression has no effect


>>linha 242 error 017: undefined symbol "RandomSpawns"
>> linha 242 warning 215: expression has no effect
>> linha 242 error 001: expected token: ";", but found "]"
>> linha 242 error 029: invalid expression, assumed zero
Reply
#2

Esqueces-te de definir as cordenadas.
pawn Код:
new Float:gRandomSpawns[4][3] = {
{X,Y,Z},
{X№,Y№,Z№},
{XІ,YІ,ZІ},
{Xі,Yі,Zі}
};
Reply
#3

n entendi essas cordenadas tb fazer parte so q elas n tao dando erro so akilo ta dando erro

Код:
new Float:RandomSpawns[2][3] = {
{1445.3853,-1015.9861,25.9961},
{1745.0760,-1456.8821,13.5293},
};
Reply
#4

Quote:
Originally Posted by thaw_ps
Посмотреть сообщение
n entendi essas cordenadas tb fazer parte so q elas n tao dando erro so akilo ta dando erro

Код:
new Float:RandomSpawns[2][3] = {
{1445.3853,-1015.9861,25.9961},
{1745.0760,-1456.8821,13.5293},
};
tira a virgula no final

pawn Код:
new Float:RandomSpawns[2][3] = {
{1445.3853,-1015.9861,25.9961},
{1745.0760,-1456.8821,13.5293}
};
Reply
#5

ainda continua com os mesmo erros
Reply
#6

Quote:
Originally Posted by thaw_ps
Посмотреть сообщение
ainda continua com os mesmo erros
Cola o que tu fez que fica mais fбcil...
Reply
#7

?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)