[Ajuda] Mundo Virutal Random
#1

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
Reply
#2

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

SetPlayerVirtualWorld nгo й float.

Segue o exemplo do Parka.
Reply
#4

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


Forum Jump:


Users browsing this thread: 2 Guest(s)