[AJUDA]AJUDA NO SISTEMA DE NASCIMENTO NO TUTORIAL!
#1

OLБ,EU GOSTARIA DE AJUDA PARA FAZER UM COMANDO DE NASCER EM LS OU SF MAS ANTES DE INICIAR O TUTORIAL!

-Iniciante em Pawno,mas me considero intermediario pq ja sei bastante coisas.

Obrigado desde Jб.......
Reply
#2

De Que Forma Vocк Deseja ? Em Dialog ? OnPlayerText ?
Reply
#3

Eu Gostaria de Dialog,mas se nao puder pode ser em qualquer um.
Reply
#4

pawn Код:
new Nasceremls[MAX_PLAYERS];
new Nasceremsf[MAX_PLAYERS];
new Tutorial[MAX_PLAYERS];
//=================================================================
public OnPlayerSpawn(playerid)
{
    if(Nasceremls == 1)
    {
        SetPlayerPos(playerid, coordenada x, coordenada y, coordenada z);//Posicao nascer em los santos
    }
    if(Nasceremsf == 1)
    {
         SetPlayerPos(playerid, coordenada x, coordenada y, coordenada z);//Posicao nascer em san fierro
    }
 if(Tutorial[playerid] == 0)
     {
      ShowPlayerDialog(playerid, 1, "Selecione sua cidade", DIALOG_STYLE_MSGBOX, "Selecione abaixo sua cidade", "Los Santos", "San Fierro");
     return 1;
     }
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(listitem)
        {
            Nasceremls = 1;
            Nasceremsf = 0;
            //Aqui coloque o negocio que leva ao seu tutorial(Thug & cia TutTime = 5;)
        }
            else
        {
            Nasceremsf = 1;
            Nasceremls = 0;
        }
    }
}
Reply
#5

LOL,eu consegui por mas na hora de compilar diz:
Pawn Compiler Parou de funcionar e acaba nao compilando..//
sera que esqueci de algo? eu fiz tudo direitinho.
Reply
#6

Ops,agora deu alguns erros...

Код:
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8533) : error 010: invalid function or declaration
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8537) : error 010: invalid function or declaration
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8541) : error 010: invalid function or declaration
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8544) : error 010: invalid function or declaration
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8548) : error 021: symbol already defined: "OnDialogResponse"
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8553) : error 033: array must be indexed (variable "Nasceremls")
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8554) : error 033: array must be indexed (variable "Nasceremsf")
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8555) : error 033: array must be indexed (variable "TutTime")
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8559) : error 033: array must be indexed (variable "Nasceremsf")
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(8560) : error 033: array must be indexed (variable "Nasceremls")
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(26679) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(36886) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(36887) : warning 219: local variable "Infoo" shadows a variable at a preceding level
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(65257) : warning 203: symbol is never used: "Tutorial"
C:\Users\Jean Vitor De Araujo\Desktop\Arquivos\BDC\gamemodes\roleplay.pwn(65257) : warning 203: symbol is never used: "strto"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#7

burro, n й pra da ctrl + c de tudo... os que ja tem so й n colocar
Reply
#8

poxa eu fiz isso,agora que lembrei que no dialog response ja tinha tbm,mas eu mudei tbm,ja tinha dialog response eu puis em baixo do dialog response existente,fiz a mesma coisa com o OnplayerSpawn. mas voltou a deichar de responder o pawno compiler. :S
Reply
#9

Poxa nao da nem a pau,o pawno para de responder poxa.
Reply
#10

Poxa,alguem me ajuda ?
eu preciso muito desse sistema..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)