SA-MP Forums Archive
[Ajuda] Mundo Virutal Random - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Mundo Virutal Random (/showthread.php?tid=449208)



Mundo Virutal Random - TheKoDaK - 07.07.2013

Galera eu tava aki fazendo um comando para que quando eu digitasse ele era me mandaria para um mundo randomico.

pois eu fiz o codigo mais nao conssegui compilar aki esta o codigo sera que voces poderiam me ajudar ?

pawn Код:
new Float:sModoGravacao[][4] =
{
    {1},
    {2},
    {3},
    {4}
};
pawn Код:
CMD:exemplo(playerid, params[])
{
    if(TextDrawOn[playerid] == true)
    {
         SendClientMessage(playerid, Cinza, "{3cff00}Ч INFO Ч {FFFFFF} TextDraw's Desativadas.");
         TextDrawHideForPlayer(playerid, TheBrasilDrift);
         TextDrawHideForPlayer(playerid, Rodape);
         TextDrawHideForPlayer(playerid, Textdraw1);
         TextDrawOn[playerid] = false;
    }
    new sendername[MAX_PLAYER_NAME];
    new string[228];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "{3cff00}Ч INFO Ч {f00c0c} %s {FFFFFF}Entrou em Modo de Gravaзгo nгo o encomode!{3cff00}(/ModoGravacao)", sendername);
    SendClientMessageToAll(Verde,string);
    SendClientMessage(playerid, Vermelho, "{3cff00}Ч INFO Ч {FFFFFF}Voce Entrou em Modo de Gravacao para Sair do Modo Gravaзгo Digite {f00c0c}/ModoGravacaoOff.");
    new shick = random(sizeof(sModoGravacao));
    SetPlayerVirtualWorld(playerid, sModoGravacao[shick][0], sModoGravacao[shick][1],sModoGravacao[shick][2], sModoGravacao[shick][3]);
    return 1;
}
e da os seguintes WARNINGS

Код:
C:\Users\Dragon\Desktop\Server Original\gamemodes\TBDa.pwn(129) : warning 213: tag mismatch
C:\Users\Dragon\Desktop\Server Original\gamemodes\TBDa.pwn(130) : warning 213: tag mismatch
C:\Users\Dragon\Desktop\Server Original\gamemodes\TBDa.pwn(131) : warning 213: tag mismatch
C:\Users\Dragon\Desktop\Server Original\gamemodes\TBDa.pwn(132) : warning 213: tag mismatch
C:\Users\Dragon\Desktop\Server Original\gamemodes\TBDa.pwn(9334) : warning 213: tag mismatch
C:\Users\Dragon\Desktop\Server Original\gamemodes\TBDa.pwn(9334) : warning 202: number of arguments does not match definition
C:\Users\Dragon\Desktop\Server Original\gamemodes\TBDa.pwn(9334) : warning 202: number of arguments does not match definition
C:\Users\Dragon\Desktop\Server Original\gamemodes\TBDa.pwn(9334) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
Sera que alguem poderia me ajudar ? ficarei muito grato


Respuesta: Mundo Virutal Random - Parka - 07.07.2013

SetPlayerVirtualWorld
Limits
pawn Код:
new Rand = random(2147483646);
SetPlayerVirtualWorld(playerid, Rand);



Re: Mundo Virutal Random - Gustavo_Carvalho - 07.07.2013

SetPlayerVirtualWorld nгo й float.

Segue o exemplo do Parka.


Re: Respuesta: Mundo Virutal Random - TheKoDaK - 07.07.2013

Quote:
Originally Posted by Parka
Посмотреть сообщение
SetPlayerVirtualWorld
Limits
pawn Код:
new Rand = random(2147483646);
SetPlayerVirtualWorld(playerid, Rand);
Valeu Mano me ajudo cara