SA-MP Forums Archive
Again this problem! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Again this problem! (/showthread.php?tid=630372)



Again this problem! - ProBro - 13.03.2017

PHP код:
C:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(46) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(67) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(81) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(101) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(122) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(151) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(179) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(227) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(282) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(297) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(300) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(308) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(311) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(319) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(322) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(329) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(330) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(333) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(341) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(344) : warning 217loose indentation
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(393) : error 010invalid function or declaration
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(395) : error 010invalid function or declaration
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(397) : error 010invalid function or declaration
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Errors

PHP код:
if(PRESSED(KEY_WALK))
{
         if(
team[playerid] == TEAM_BALLA)
        {
            if(
gettime() - Abilitys[playerid]return GameTextForPlayer(playerid,"~w~ Ability Recharging!",1000,5);
            {
                    
GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
                       
SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.81.2);
                    
Abilitys[playerid][HighJumpZombie] = gettime();




Re: Again this problem! - Flamehaze7 - 13.03.2017

Код:
if(PRESSED(KEY_WALK))
{
         if(team[playerid] == TEAM_BALLA)
        {
            if(gettime() - 6 < Abilitys[playerid]) return GameTextForPlayer(playerid,"~w~ Ability Recharging!",1000,5);

                    GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
                    SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.8* 1.2);
                    Abilitys[playerid][HighJumpZombie] = gettime();
          }
}
Try like this.

For the loose indentation: https://sampforum.blast.hk/showthread.php?tid=256961


Re: Again this problem! - Toroi - 13.03.2017

What in the world are you trying to do here?

PHP код:
 if(gettime() - Abilitys[playerid]return GameTextForPlayer(playerid,"~w~ Ability Recharging!",1000,5); 
Also, for the indentation warnings, I recommend you to press your tabulator key instead of using the space bar.

EDIT: Oopsey, the guy before me was faster.


Re: Again this problem! - AlexPalermitano97 - 13.03.2017

Tra #pragna tabsize 0


Re: Again this problem! - ProBro - 13.03.2017

Quote:
Originally Posted by Flamehaze7
Посмотреть сообщение
Код:
if(PRESSED(KEY_WALK))
{
         if(team[playerid] == TEAM_BALLA)
        {
            if(gettime() - 6 < Abilitys[playerid]) return GameTextForPlayer(playerid,"~w~ Ability Recharging!",1000,5);

                    GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
                    SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.8* 1.2);
                    Abilitys[playerid][HighJumpZombie] = gettime();
          }
}
Try like this.

For the loose indentation: https://sampforum.blast.hk/showthread.php?tid=256961
Now it gives me this.

PHP код:
error 010invalid function or declaration
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(395) : error 010invalid function or declaration
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(397) : error 010invalid function or declaration
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(399) : error 021symbol already defined"GetPlayerVelocity"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors




Re: Again this problem! - ProBro - 13.03.2017

Quote:
Originally Posted by Troydere
Посмотреть сообщение
What in the world are you trying to do here?

PHP код:
 if(gettime() - Abilitys[playerid]return GameTextForPlayer(playerid,"~w~ Ability Recharging!",1000,5); 
Also, for the indentation warnings, I recommend you to press your tabulator key instead of using the space bar.

EDIT: Oopsey, the guy before me was faster.
xd,I'll tell ya once it's done,I'll send you pic,It's basically a super jump system for Android team,They press LALT (walk button the super jump.)So the ability has a cooldown,It's that.


Re: Again this problem! - Flamehaze7 - 13.03.2017

Quote:
Originally Posted by ProBro
Посмотреть сообщение
Now it gives me this.

PHP код:
error 010invalid function or declaration
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(395) : error 010invalid function or declaration
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(397) : error 010invalid function or declaration
C
:\Users\sAad\Desktop\Alpha vs Delta\gamemodes\Vs2.pwn(399) : error 021symbol already defined"GetPlayerVelocity"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Did you delete the unecessary brackets like i did for your script before?

And "GetPlayerVelocity" is already defined somewhere, you don't need to define it again


Re: Again this problem! - ProBro - 13.03.2017

Quote:
Originally Posted by AlexPalermitano97
Посмотреть сообщение
Tra #pragna tabsize 0
Wew,that fixed all the warnings,but the errors are still there thanks buddy.


Re: Again this problem! - ProBro - 13.03.2017

Quote:
Originally Posted by Flamehaze7
Посмотреть сообщение
Did you delete the unecessary brackets like i did for your script before?

And "GetPlayerVelocity" is already defined somewhere, you don't need to define it again
That's the prob,It's not defined anywhere else ...

I did CTRL + F "GetPlayerVelocity" It's only in 1 place.


Re: Again this problem! - Flamehaze7 - 13.03.2017

Quote:
Originally Posted by ProBro
Посмотреть сообщение
That's the prob,It's not defined anywhere else ...

I did CTRL + F "GetPlayerVelocity" It's only in 1 place.
Probably it's inside an include, try to check it