forward Explodir();
public Explodir()
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
{
new Float:x, Float:y, Float:z;
// Create an explosion at the player's position
CreateExplosion(x, y, z, 12, 10.0);
return 1;
}
C:\Arquivos de programas\Rockstar Games\GTA San Andreas\Server\filterscripts\Drop.pwn(275) : error 017: undefined symbol "playerid" C:\Arquivos de programas\Rockstar Games\GTA San Andreas\Server\filterscripts\Drop.pwn(282) : error 030: compound statement not closed at the end of file (started at line 275) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
forward Explodir(playerid);
public Explodir(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
{
new Float:x, Float:y, Float:z;
// Create an explosion at the player's position
CreateExplosion(x, y, z, 12, 10.0);
return 1;
}
cara, voce nao passou o parametro playerid, por isso que dб erro! como o pawn vai saber qual й o playerid se voce nao disse?
pawn Код:
e agora vai dar erro no x,y,z em IsPlayerInRangeOfPoint porque eles tambem nao estao definidos ... voce deve atribuir valores! e voce tambem nao vai criar um explosao na posicao do player! voce criou os pontos flutuantes "new Float ![]() voce tem de usar GetPlayerPos para lhes atribuir a posicao do player e so depois usar CreateExplosion |
C:\Arquivos de programas\Rockstar Games\GTA San Andreas\Server\filterscripts\Drop.pwn(275) : error 017: undefined symbol "x" C:\Arquivos de programas\Rockstar Games\GTA San Andreas\Server\filterscripts\Drop.pwn(282) : error 030: compound statement not closed at the end of file (started at line 275) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Se isso foi uma resposta, NAO FUNCIONOU. Erros dinovo:
Код:
C:\Arquivos de programas\Rockstar Games\GTA San Andreas\Server\filterscripts\Drop.pwn(275) : error 017: undefined symbol "x" C:\Arquivos de programas\Rockstar Games\GTA San Andreas\Server\filterscripts\Drop.pwn(282) : error 030: compound statement not closed at the end of file (started at line 275) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
e agora vai dar erro no x,y,z em IsPlayerInRangeOfPoint porque eles tambem nao estao definidos ... voce deve atribuir valores! |
forward Explodir(playerid);
public Explodir(playerid)
{
new Float:x, Float:y, Float:z;
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
{
// Create an explosion at the player's position
CreateExplosion(x, y, z, 12, 10.0);
return 1;
}
pawn Код:
|
forward Explodir(playerid);
public Explodir(playerid)
{
new Float:x, Float:y, Float:z;
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
{
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
return 1;
}
C:\Arquivos de programas\Rockstar Games\GTA San Andreas\Server\filterscripts\Drop.pwn(285) : error 030: compound statement not closed at the end of file (started at line 277) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
forward Explodir(playerid);
public Explodir(playerid)
{
new Float:x, Float:y, Float:z;
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
{
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
return 1;
}
return 1;
}
Nossa cara, vocк deveria aprender a resolver os seus prуprios problemas do que ficar dependendo de segundos.
pawn Код:
|
forward Explodir(playerid);
public Explodir(playerid)
{
new Float:x, Float:y, Float:z;
if(IsPlayerInRangeOfPoint(playerid, 7.0, 118,21, 260.86, 1077.15, 79.54))
{
GetPlayerPos(playerid, x, y, z);
CreateExplosion(118,21, 260.86, 1077.15, 79.54, 12, 10.0);
return 1;
}
return 1;
}
forward Explodir(playerid);
public Explodir(playerid)
{
new Float:x, Float:y, Float:z;
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
{
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
}
return 1;
}