Ajuda aqui :\ -
Lucas-Fc - 16.10.2012
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
Re: Ajuda aqui :\ -
Don_Speed - 16.10.2012
Tira o ; daqui
pawn Код:
#define PlayerToPoint IsPlayerRangeOfPoint;
e assim
pawn Код:
#define PlayerToPoint IsPlayerRangeOfPoint
Re: Ajuda aqui :\ -
Lucas-Fc - 16.10.2012
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.");
Re: Ajuda aqui :\ -
Ouro - 16.10.2012
PHP код:
#define IsPlayerRangeOfPoint PlayerToPoint
Re: Ajuda aqui :\ -
Lucas-Fc - 16.10.2012
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 :\
Re: Ajuda aqui :\ -
Jason` - 16.10.2012
O correto й IsPlayer
InRangeOfPoint.
PHP код:
#define PlayerToPoint(%0,%1,%2,%3,%4) IsPlayerInRangeOfPoint(%1,%0,%2,%3,%4)
Re: Ajuda aqui :\ -
Lucas-Fc - 16.10.2012
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
Re: Ajuda aqui :\ -
Jason` - 16.10.2012
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;
}
Re: Ajuda aqui :\ -
Lucas-Fc - 16.10.2012
Dai Nгo precisa definir nada Certo ?
Re: Ajuda aqui :\ -
Jason` - 16.10.2012
Exatamente, й uma funзгo nativa do sa-mp.