[Ajuda] Virtual World adicionando no GM
#1

Aonde que bota isso daqui no meu GM para nгo bugar casa...
Код:
SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualWorld]);
Код:
SetPlayerVirtualWorld(playerid, 0);
E o comando para nгo bugar....
Код:
if(strcmp(cmd, "/entrar", true) == 0)
{
  if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid, HouseInfo[i][hInt]);
SetPlayerPos(playerid, HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~w~bem vindo em casa", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualWorld]);
}
else
{
GameTextForPlayer(playerid, "~r~trancado", 5000, 1);
}
}
}
Код:
if(strcmp(cmd, "/sair", true) == 0)
{
  if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
//printf("House :%d",i);
if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerVirtualWorld(playerid, 0);
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
}
}
            [...]
Bom eu nгo sei se prescisa botar mais algo por que eu fui na pasta do Caio Cartaxo pedindo ajuda com o Virtual World...Eu tbm presciso...

Eu queria saber como que bota e se prescisa botar mais algo como comando.....

Obrigado !
Reply
#2

Jб tens tantos tуpicos abertos, jб foste avisado para nгo abrir mais do que um tуpico e continuas a fazer a mesma porcaria. Nгo hб mais ajuda, desenrrasca-te.
Reply
#3

Quote:
Originally Posted by russooooo
Jб tens tantos tуpicos abertos, jб foste avisado para nгo abrir mais do que um tуpico e continuas a fazer a mesma porcaria. Nгo hб mais ajuda, desenrrasca-te.
Cara esse que й o meu problema...
Eu leio a porra mas nгo aprendo '-'
Eu so consigo aprender se "me" ensinarem ¬¬
Reply
#4

Irei comeзar hj um sistema
Q como vai funcionar...

Vo por para no /sair

Detectar qual e o virtualworld que ele estб
Para sair na casa deste virtualworld que ele estб!
Pq o /entrar estб corrento
Reply
#5

Quote:
Originally Posted by Caio Cartaxo
Irei comeзar hj um sistema
Q como vai funcionar...

Vo por para no /sair

Detectar qual e o virtualworld que ele estб
Para sair na casa deste virtualworld que ele estб!
Pq o /entrar estб corrento
O Caio eu uso o seu GM...
Mas o problema й esse do VirtualWorld
Reply
#6

O meu tb :c
to trabalhando muito nele
Reply
#7

Bom eu fiz de acordo com esse site daki http://forum.sa-mp.com/index.php?topic=143553.0
e olha oque apareceu :
Код:
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(1616) : error 021: symbol already defined: "HouseInfo"
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(1834) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(1863) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2191) : error 004: function "DetectorProx" is not implemented
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : error 012: invalid function call, not a valid address
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : error 001: expected token: ";", but found ")"
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : fatal error 107: too many error messages on one line

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


8 Errors.
Reply
#8

Quote:
Originally Posted by Baddark2131
Bom eu fiz de acordo com esse site daki http://forum.sa-mp.com/index.php?topic=143553.0
e olha oque apareceu :
Код:
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(1616) : error 021: symbol already defined: "HouseInfo"
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(1834) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(1863) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2191) : error 004: function "DetectorProx" is not implemented
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : error 012: invalid function call, not a valid address
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : error 001: expected token: ";", but found ")"
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\Meu servidor\Brasil Xtreme Life\gamemodes\BXL.pwn(2266) : fatal error 107: too many error messages on one line

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


8 Errors.
Para resolver o problema do money poem no topo do seu game mode
pawn Код:
#include <moneyprotect>
Reply
#9

O foda й que eu nгo tenho a INC do MoneyProject '-'
Reply
#10

Jб pensaste em usar a porra do search? Queres tudo de mгo beijada? Pede com jeitinho e/ou entгo quanto pagas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)