[Ajuda] Ajuda aqui :\
#1

Oi. Preparei um cуdigo Para verificar se o player tava num local. dai deu erro.

No Topo do GM :


pawn Код:
#define PlayerToPoint IsPlayerRangeOfPoint;
No Comando :

pawn Код:
CMD:weagle(playerid,params[])
{
        if(!PlayerToPoint(25.0,playerid,287.2928,-109.7757,1001.5156)) return SendClientMessage(playerid, -1, "[INFO] Vocк Nгo Estб Numa Loja De Armas.");
    if(GetPlayerMoney(playerid) < 250) return SendClientMessage(playerid,0xFF230AFF,"Nгo Tem Grana Jovem !");
        SendClientMessage(playerid,0xFAAC02FF,"[INFO] Vocк Comprou uma Ealge Por R$: 250");
    GivePlayerWeapon(playerid,24,99999);
    GivePlayerMoney(playerid,-250);
    return 1;
}
Erros :

pawn Код:
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(89) : error 017: undefined symbol "IsPlayerRangeOfPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(89) : error 001: expected token: ")", but found ";"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(89) : error 036: empty statement
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(89) : fatal error 107: too many error messages on one line

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


4 Errors.
Linhas : ( Todos os Erros na mesma Linha )

pawn Код:
if(!PlayerToPoint(25.0,playerid,287.2928,-109.7757,1001.5156)) return SendClientMessage(playerid, -1, "[INFO] Vocк Nгo Estб Numa Loja De Armas.");

Help Me :P
Reply
#2

Tira o ; daqui
pawn Код:
#define PlayerToPoint IsPlayerRangeOfPoint;
e assim
pawn Код:
#define PlayerToPoint IsPlayerRangeOfPoint
Reply
#3

Assim, da 7 Erros Don.

pawn Код:
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(89) : error 017: undefined symbol "IsPlayerRangeOfPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(99) : error 017: undefined symbol "IsPlayerRangeOfPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(109) : error 017: undefined symbol "IsPlayerRangeOfPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(119) : error 017: undefined symbol "IsPlayerRangeOfPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(129) : error 017: undefined symbol "IsPlayerRangeOfPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(139) : error 017: undefined symbol "IsPlayerRangeOfPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(149) : error 017: undefined symbol "IsPlayerRangeOfPoint"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
Nas Linhas :

pawn Код:
if(!PlayerToPoint(25.0,playerid,287.2928,-109.7757,1001.5156)) return SendClientMessage(playerid, -1, "[INFO] Vocк Nгo Estб Numa Loja De Armas.");
Reply
#4

PHP код:
#define IsPlayerRangeOfPoint PlayerToPoint 
Reply
#5

Quote:
Originally Posted by Ouro
Посмотреть сообщение
PHP код:
#define IsPlayerRangeOfPoint PlayerToPoint 
pawn Код:
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(89) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(99) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(109) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(119) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(129) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(139) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(149) : error 017: undefined symbol "PlayerToPoint"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
Acho que A Ordem dos Fatores nгo altera o Produto kk :\
Reply
#6

O correto й IsPlayerInRangeOfPoint.

PHP код:
#define PlayerToPoint(%0,%1,%2,%3,%4) IsPlayerInRangeOfPoint(%1,%0,%2,%3,%4) 
Reply
#7

Jason, Olhe isso, Mudei o nome, mais...

pawn Код:
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(89) : warning 213: tag mismatch
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(99) : warning 213: tag mismatch
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(109) : warning 213: tag mismatch
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(119) : warning 213: tag mismatch
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(129) : warning 213: tag mismatch
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(139) : warning 213: tag mismatch
C:\Users\Lucas\Desktop\Servidor\gamemodes\RP.pwn(149) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Warnings.
@ Edit :

Compilou


xD
Reply
#8

Por que nгo usa simplesmente IsPlayerInRangeOfPoint?

PHP код:
CMD:weagle(playerid,params[])
{
    if(!
IsPlayerInRangeOfPoint(playerid,25.0,287.2928,-109.7757,1001.5156)) return SendClientMessage(playerid, -1"[INFO] Vocк Nгo Estб Numa Loja De Armas.");
    if(
GetPlayerMoney(playerid) < 250) return SendClientMessage(playerid,0xFF230AFF,"Nгo Tem Grana Jovem !");
    
SendClientMessage(playerid,0xFAAC02FF,"[INFO] Vocк Comprou uma Ealge Por R$: 250");
    
GivePlayerWeapon(playerid,24,99999);
    
GivePlayerMoney(playerid,-250);
    return 
1;

Reply
#9

Dai Nгo precisa definir nada Certo ?
Reply
#10

Exatamente, й uma funзгo nativa do sa-mp.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)