[AJUDA] Erro em comandos de quipar, ao campilar gm
#1

Oi gente no meu gm as orgs ainda nгo teem comando de equipar dai eu tava pondo novos, vo dar um exemplo:


if(strcmp(cmd, "/equiparvagos", true) == 0)
{
if (PlayerToPoint(3, playerid,2349.2590,-1183.2111,1027.9766))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pLeader] == 19 PlayerInfo[playerid][pMember] == 19)
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 100); // selecione suas armas
GivePlayerWeapon(playerid, 4, 1); // selecione suas armas
GivePlayerWeapon(playerid, 29, 300); // selecione suas armas
GivePlayerWeapon(playerid, 29, 250); // selecione suas armas
SetPlayerSkin(playerid, 285); // selecione suas armas
}
if(strcmp(cmd, "/equiparaztecas", true) == 0)
{
if (PlayerToPoint(3, playerid,1888.6451,-2000.8036,13.5469))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pLeader] == 5 PlayerInfo[playerid][pMember] == 5)
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 100); // selecione suas armas
GivePlayerWeapon(playerid, 4, 1); // selecione suas armas
GivePlayerWeapon(playerid, 29, 300); // selecione suas armas
GivePlayerWeapon(playerid, 29, 250); // selecione suas armas
SetPlayerSkin(playerid, 285); // selecione suas armas
}
if(strcmp(cmd, "/equiparlh", true) == 0)
{
if (PlayerToPoint(3, playerid,283.5574,-1145.7904,80.9141))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pLeader] == 22 PlayerInfo[playerid][pMember] == 22)
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 100); // selecione suas armas
GivePlayerWeapon(playerid, 4, 1); // selecione suas armas
GivePlayerWeapon(playerid, 29, 300); // selecione suas armas
GivePlayerWeapon(playerid, 34, 250); // selecione suas armas
GivePlayerWeapon(playerid, 30, 250); // selecione suas armas
GivePlayerWeapon(playerid, 25, 100); // selecione suas armas
SetPlayerSkin(playerid, 285); // selecione suas armas
}



Esses sгo alguns dos comandos de equipar que eu to pondo


O erro que ta me dando й esse:
C:\Users\Utilizador\Desktop\NGRP1.pwn(773) : error 004: function "SaveAdmin" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(779) : error 004: function "SaveCars" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2181) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Utilizador\Desktop\NGRP1.pwn(2210) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Utilizador\Desktop\NGRP1.pwn(2402) : error 004: function "BoxdaGuerra" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2507) : error 004: function "DetectorProx" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2582) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2586) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(259 : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2602) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2606) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2610) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2614) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(261 : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2622) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2634) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(263 : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2642) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2646) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2650) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2662) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2666) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2670) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2682) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(2686) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Utilizador\Desktop\NGRP1.pwn(3565) : error 017: undefined symbol "GivePlayerMoneyEx"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Por favor se alguem soube de que й esse erro me ajude pf =S
Reply
#2

Use :

IsPlayerInRangeOfPoint

pawn Код:
if(strcmp(cmd, "/equiparvagos", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,2349.2590,-1183.2111,1027.9766))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pLeader] == 19 PlayerInfo[playerid][pMember] == 19)
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 100); // selecione suas armas
GivePlayerWeapon(playerid, 4, 1); // selecione suas armas
GivePlayerWeapon(playerid, 29, 300); // selecione suas armas
GivePlayerWeapon(playerid, 29, 250); // selecione suas armas
SetPlayerSkin(playerid, 285); // selecione suas armas
}
return 1;
}
if(strcmp(cmd, "/equiparaztecas", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,1888.6451,-2000.8036,13.5469))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pLeader] == 5 PlayerInfo[playerid][pMember] == 5)
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 100); // selecione suas armas
GivePlayerWeapon(playerid, 4, 1); // selecione suas armas
GivePlayerWeapon(playerid, 29, 300); // selecione suas armas
GivePlayerWeapon(playerid, 29, 250); // selecione suas armas
SetPlayerSkin(playerid, 285); // selecione suas armas
}
return 1;
}
if(strcmp(cmd, "/equiparlh", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,283.5574,-1145.7904,80.9141))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pLeader] == 22 PlayerInfo[playerid][pMember] == 22)
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 100); // selecione suas armas
GivePlayerWeapon(playerid, 4, 1); // selecione suas armas
GivePlayerWeapon(playerid, 29, 300); // selecione suas armas
GivePlayerWeapon(playerid, 34, 250); // selecione suas armas
GivePlayerWeapon(playerid, 30, 250); // selecione suas armas
GivePlayerWeapon(playerid, 25, 100); // selecione suas armas
SetPlayerSkin(playerid, 285); // selecione suas armas
}
return 1;
}
Reply
#3

No final do GM:

PHP код:
PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z)
{
new 
Float:oldposxFloat:oldposyFloat:oldposz;
new 
Float:tempposxFloat:tempposyFloat:tempposz;
GetPlayerPos(playeridoldposxoldposyoldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
{
return 
1;
}
return 
0;

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)