Again this problem!
#1

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();

Reply
#2

Код:
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
Reply
#3

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.
Reply
#4

Tra #pragna tabsize 0
Reply
#5

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

Reply
#6

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

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

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

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)