Cyelho Lima's Forum Posts

  • I have construct 2, but if I'm not able to perform the action on it (due to the update and, above all, the Facebook ones, as I tried an old example, provided here on the forum and it only shows the user's name and not his photo ), I buy the 3 if anyone can just do this using version 3. I ask for help to make just the code that logs in, Facebook + Construct 2 or 3. I know more or less how to configure Facebook. Thanks in advance!

  • Hello, rexrainbow if you still have it, could you disenable the .capx demo of your project, because I'm trying to download and I can not (corrupted links).

  • > Does anyone have an example of a .capx and .php file to update, you can send?

    >

    > Only this, but can not do it ... I could only register, missing the update.

    >

    > Thanked already!

    >

    O que você quer exatamente fazer cara? atualizar o arquivo PHP quando atualizar o capx?

    roxinhojp exatamente isso!

    Quando clicar no botão sair, pegar os dados e salvar no banco, só que atualizando, entende?!

    Não consigo é fazer isso no Construct 2.. O arquivo em .PHP atualiza quando usado em páginas web.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Eltondrknss if someone has a .capx file (eg done in the Construct 2) to update the player's score (PHP and MySQL) and can share with me. I tried many ways more unfortunately did not get ... The only thing that was successfully made the user registration.

    Eltondrknss excuse me, I'm using Google translator to be able to communicate in your language.

  • Does anyone have an example of a .capx and .php file to update, you can send?

    Only this, but can not do it ... I could only register, missing the update.

    Thanked already!

  • Saad Swad, What you did is running normally, right? Because I'm trying here and're not saving, you log in with the same wrong information...

    BillAlex Thank for the help (review), but I think I can not do this... a long time I'm trying, and nothing. I think I'll give up... bad idea to think that I could!!

    Sorry for creating the post!!

  • BillAlex, excuse me, but did not understand!

  • Saad Swad, yes, I did it, friend! Because to see that you used the NWJS thought I could have some difference with the android devices. Oh, you did the same example database that I posted? I tried to save user information and not saved ... I created the same page my-site , so possessed the same way...

    Sorry for asking too much!

  • Hello, Saad Swad, thank you very much. Now, when I test the Construct 2 he asked that I lowered the nwjs construct.net/en at last, to my knowledge the NWJS Allows you to make Windows, Mac and Linux games with Construct 2. Anyway, my project is for the Android platform... Can you tell if it works on mobile devices or only on Desktop?

    Already, friend, gradeço and for your help!!

  • Saad Swad, unfortunately I'm not getting ... You can make the file available to quoting the example (.capx and .php )?! I'm trying and I can not , I do not know what I've been doing!!

    So , i see better as you did and try to adapt the way I'm trying to do...

    my email :

  • Saad Swad, When logar.php would look like?

    Or has something before connecting to the server?

    <?php
    	$email = $_GET['email'];
    	$senha = $_GET['senha'];
    
    	$Servidor = "localhost";
    	$Usuario = "root"; 
    	$Senha = ""; 
    	$Banco = "librauernplay";
    	$port = "3306";
    	
    	$Separator =";";
    	$Exist = "SELECT count(*) FROM login WHERE email='$email'";
    	if ($Exist ==1){
    		if (" SELECT senha FROM login WHERE email='$email'" == $senha){
    	
    		$id = " SELECT id FROM login WHERE email='$email'" ; 
    		$nome = " SELECT nome FROM login WHERE id='$id'" ;
    ******* = " SELECT **** FROM login WHERE id='$id'";
    		$score = " SELECT score FROM login WHERE id='$id'" ;
    	
    		echo $nome. $separator . $sexo.$separator.$score;
    	
    		}else if (" SELECT senha FROM login WHERE email='$email'" != $senha){
    			echo "Error";
    		}
    	
    	}else if($Exist ==0){
    		echo "0";
    	}
    
    ?>[/code:1xg06wbz]
  • Hello , Saad Swad, is this part of the separator "|" I can not do in PHP ( I doubt ), I had to learn the basics to login. I can not do this tab in php, you can help me ( thank enough, boy )?! The following is what I did in login.php (See Fgures).

    Figure 1 - PHP code - Login

    Figure 2 - Database

    Figure 3 - Event in Construct 2

    Figure 4 - Login in the Game

    Figure 5 - Menu screen in game

    I understand that I have to use the " tokenat " but as use the old mysql , obsolete (I could not use the mysqli or PHP PDO class) ... do not know how to do tab using this version of mysql.

    Use Google Translate, so the English can is bad, sorry!

  • luvleggs, i appreciate that, but what it lacks is different from your ... you want to save, and I want to show the data ... I will follow the post and see if I can solve my doubts.

    Sorry about my terrible English!!

  • Saad Swad, I did a login system and can not access the menu ( the login layout is the User redirected to the menu ) , the problem is not that I can show User data saved in the bank ... use phpmyadmin while not do site to save the data on the server ...

    the only problem is just to show the data (score , name, image) of logged in User .

    I want to try and make available to others who may have the same doubts that I ... or if someone can share with me , thank you ... I implement the way I need ...

    excuse the bad English ... I speak Portuguese !! (laughs)

  • Sorry, I thought I could .

    I want to do the login field where the next stages show User data logged ... but apparently , it seems that few are using PHP and MySQL .

    forgiveness , use the google translator .