[ajuda]entradas
#1

Bom Estou Criando Um Game Mode Do Zero Mas Deu Alguns Erro Ao adcionar os Interior

Код:
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(199) : warning 217: loose indentation
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(268) : warning 217: loose indentation
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1452) : warning 217: loose indentation
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1557) : error 017: undefined symbol "PlayerToPoint"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1560) : error 017: undefined symbol "SafeSetPlayerPos"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1562) : error 017: undefined symbol "Player"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1562) : warning 215: expression has no effect
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1562) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1562) : error 029: invalid expression, assumed zero
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1562) : fatal error 107: too many error messages on one line
Erro Linha 1557
pawn Код:
if(PlayerToPoint(1.0, playerid,952.5583,-909.3518,45.7656))//auto escola entrada
ERRO LINHA 1560 E 1562
pawn Код:
SafeSetPlayerPos(playerid,-2029.8271,-119.5075,1035.1719);//1560
            GameTextForPlayer(playerid, "~y~bem vindo a~n~~r~auto escola", 5000, 1);
            Player[playerid][pInt] = 3;//1562
Bom E Isso!
Reply
#2

topo do GM:
PHP код:
enum pInfo
{
    
pInt,
    
pTut,
    
pLocal,
};
new 
Player[MAX_PLAYERS][pTut]; 
final do GM:
PHP код:
forward PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z);
public 
PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
Float:oldposxFloat:oldposyFloat:oldposz;
        new 
Float:tempposxFloat:tempposyFloat:tempposz;
        
GetPlayerPos(playeridoldposxoldposyoldposz);
        
tempposx = (oldposx -x);
        
tempposy = (oldposy -y);
        
tempposz = (oldposz -z);
        
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
        
if (((tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
        {
            return 
1;
        }
    }
    return 
0;
}
forward SafeSetPlayerPos(playeridFloat:xFloat:yFloat:z);
public 
SafeSetPlayerPos(playeridFloat:xFloat:yFloat:z)
{
        
SetPlayerPos(playeridx,y,z);
        return 
1;

Reply
#3

Quote:
Originally Posted by GabrielDias_Invision
Посмотреть сообщение
topo do GM:
PHP код:
enum pInfo
{
    
pInt,
};
new 
Player[MAX_PLAYERS][pTut]; 
final do GM:
PHP код:
forward PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z);
public 
PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
Float:oldposxFloat:oldposyFloat:oldposz;
        new 
Float:tempposxFloat:tempposyFloat:tempposz;
        
GetPlayerPos(playeridoldposxoldposyoldposz);
        
tempposx = (oldposx -x);
        
tempposy = (oldposy -y);
        
tempposz = (oldposz -z);
        
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
        
if (((tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
        {
            return 
1;
        }
    }
    return 
0;
}
forward SafeSetPlayerPos(playeridFloat:xFloat:yFloat:z);
public 
SafeSetPlayerPos(playeridFloat:xFloat:yFloat:z)
{
        
SetPlayerPos(playeridx,y,z);
        return 
1;

Ai Deu Esses Erros.

pawn Код:
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(33) : error 017: undefined symbol "pTut"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(33) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(203) : warning 217: loose indentation
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(272) : warning 217: loose indentation
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1456) : warning 217: loose indentation
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1567) : error 017: undefined symbol "pLocal"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1574) : error 017: undefined symbol "pLocal"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1627) : error 017: undefined symbol "cluckinexit"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1627) : warning 215: expression has no effect
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1627) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1627) : error 029: invalid expression, assumed zero
C:\Documents and Settings\mau tito\Desktop\Samp 0\gamemodes\RPG.pwn(1627) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)