SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 07/07/2016, 03:33 PM   #1
ModaLOKO
Huge Clucker
 
ModaLOKO's Avatar
 
Join Date: Jun 2013
Location: Iporá-GO
Posts: 270
Reputation: 6
Default CreateExplosion

Hay , precisei criar varias explosões no mapa , porem só 10 podem ser vista pelo player... então pensei:

pawn Code:
new Explosões [][] =
{
{coordenadas},
{coordenadas},
{coordenadas},
{coordenadas},
.... +20
};


pawn Code:
CMD:OI(playerid)
{
CreateExplosion(Explosões, 6, 50.0);
return 1;
}

Mas ta dando Warning e não sei a palavra chave para pesquisar.

Esse codigo pode funcionar ? e fazer com que o player veja todas!
__________________
ModaLOKO is offline   Reply With Quote
Old 07/07/2016, 03:38 PM   #2
willttoonn
Gangsta
 
willttoonn's Avatar
 
Join Date: Nov 2011
Location: Brazil
Posts: 941
Reputation: 88
Default Re: CreateExplosion

Tente assim, no topo do gamemode:
pawn Code:
static const Float:Explosions[6][3] = {
    {X, Y, Z},
    {X, Y, Z},
    {X, Y, Z},
    {X, Y, Z},
    {X, Y, Z},
    {X, Y, Z}
};
Onde tem X, Y e Z coloque as coordenadas que você deseja. Onde tem um 6 você pode por o limite de explosões que você quer.

No comando:
pawn Code:
for (new i = 0; i < sizeof(Explosions); i ++)
{
    CreateExplosion(Explosions[i][0], Explosions[i][1], Explosions[i][2], 6, 50.0);
}
__________________
Sometimes a captain has to make the unpopular call because that's his responsibility

_________ Development Manager ______________________ Administrator
____________________ Brazilian Hard Roleplay Server ___________ Unofficial discord of the Brazilian/Portuguese SA-MP board

____________ _

willttoonn is offline   Reply With Quote
Old 07/07/2016, 03:53 PM   #3
ModaLOKO
Huge Clucker
 
ModaLOKO's Avatar
 
Join Date: Jun 2013
Location: Iporá-GO
Posts: 270
Reputation: 6
Default Re: CreateExplosion

o Codigo para funcionar , so que mesmo assim o player só consegue ver 10 explosões... vou criar intervalos usando timers...

Obrigado pela ajuda! +
__________________
ModaLOKO is offline   Reply With Quote
Old 07/07/2016, 03:56 PM   #4
Schocc
High-roller
 
Join Date: Mar 2012
Location: /home
Posts: 3,239
Reputation: 378
Default Re: CreateExplosion

As palavras chaves são:
Tipos de dados.
Tipos de variáveis.
Vetores e arrays (variáveis multidimensionais, unidimensional, bidimensional e tridimensional)

Estuda essas coisas que você vai se tornar um ninja.

E só praticar manipulação de variáveis.
Schocc is offline   Reply With Quote
Old 07/07/2016, 03:59 PM   #5
ModaLOKO
Huge Clucker
 
ModaLOKO's Avatar
 
Join Date: Jun 2013
Location: Iporá-GO
Posts: 270
Reputation: 6
Default Re: CreateExplosion

Shocc você sabe de algum Tutorial bem explicado sobre Manipulação de variáveis ? quero aprender
__________________
ModaLOKO is offline   Reply With Quote
Old 07/07/2016, 04:40 PM   #6
Schocc
High-roller
 
Join Date: Mar 2012
Location: /home
Posts: 3,239
Reputation: 378
Default Re: CreateExplosion

As coisas mais importantes e úteis você aprende lendo a wiki.


http://forum.sa-mp.com/showthread.php?t=235924
http://forum.sa-mp.com/showthread.php?t=466883
http://forum.sa-mp.com/showthread.php?t=358116
http://forum.sa-mp.com/showthread.php?p=2249016
Schocc is offline   Reply With Quote
Old 07/07/2016, 05:47 PM   #7
willttoonn
Gangsta
 
willttoonn's Avatar
 
Join Date: Nov 2011
Location: Brazil
Posts: 941
Reputation: 88
Default Re: CreateExplosion

Você quer explosões contínuas?
__________________
Sometimes a captain has to make the unpopular call because that's his responsibility

_________ Development Manager ______________________ Administrator
____________________ Brazilian Hard Roleplay Server ___________ Unofficial discord of the Brazilian/Portuguese SA-MP board

____________ _

willttoonn is offline   Reply With Quote
Old 07/07/2016, 08:14 PM   #8
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,840
Reputation: 672
Default Re: CreateExplosion

Use meu tutorial: http://forum.sa-mp.com/showthread.php?p=2249016


Bons estudos!
zSuYaNw is offline   Reply With Quote
Old 07/07/2016, 08:43 PM   #9
ModaLOKO
Huge Clucker
 
ModaLOKO's Avatar
 
Join Date: Jun 2013
Location: Iporá-GO
Posts: 270
Reputation: 6
Default Re: CreateExplosion

Quote:
Originally Posted by willttoonn View Post
Você quer explosões contínuas?
Sim , so que o player não conseguer ver + 10 então vou usar timer..
__________________
ModaLOKO is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Pedido] CreateExplosion Lucas_HenryK Português/Portuguese 13 18/10/2014 02:03 AM
Help: CreateExplosion Areax Scripting Help 7 10/04/2013 07:14 PM
CreateExplosion Face9000 Help Archive 3 08/06/2011 10:01 AM
CreateExplosion Andy_McKinley Help Archive 7 25/10/2010 01:20 PM
CreateExplosion help robincom Help Archive 3 10/08/2010 07:05 PM


All times are GMT. The time now is 08:17 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.