Help :)
#1

Hello All
i have error
Quote:

D:\fasters\gamemodes\sac.pwn(2513) : error 010: invalid function or declaration

PHP код:
if(newkeys == KEY_FIRE)
{
    
TextDrawHideForPlayer(playeridSky0);
    
TextDrawHideForPlayer(playeridSky1);
    
TextDrawHideForPlayer(playeridSky3);
    
TextDrawHideForPlayer(playeridSky4);
    
TextDrawHideForPlayer(playeridSky5);
    
TextDrawHideForPlayer(playeridSky6);
    
TextDrawHideForPlayer(playeridSky7);
    
TextDrawHideForPlayer(playeridSky8);
    
TextDrawHideForPlayer(playeridSky9);
    
TextDrawHideForPlayer(playeridSky10);
    
TextDrawHideForPlayer(playeridSky11);
    
TextDrawHideForPlayer(playeridSky12);
    
TextDrawHideForPlayer(playeridSky13);
    
TextDrawHideForPlayer(playeridSky14);
    
TextDrawHideForPlayer(playeridSky15);
    
TextDrawHideForPlayer(playeridSky16);
    
TextDrawHideForPlayer(playeridSky17);
    
TextDrawHideForPlayer(playeridSky18);
    
TextDrawHideForPlayer(playeridSky19);
    
TextDrawHideForPlayer(playeridSky20);
    
TextDrawHideForPlayer(playeridSky21);
    
TextDrawHideForPlayer(playeridSky22);
    
TextDrawHideForPlayer(playeridSky23);
    
TextDrawHideForPlayer(playeridSky24);
    
TextDrawHideForPlayer(playeridSky25);
    
TextDrawHideForPlayer(playeridSky26);
    
TextDrawHideForPlayer(playeridSky27);

Reply
#2

Where's the line?
Reply
#3

Quote:
Originally Posted by Sawalha
Посмотреть сообщение
Where's the line?
PHP код:
if(newkeys == KEY_FIRE
this
Reply
#4

You don't do :
pawn Код:
if(newkeys == KEY_FIRE)
but you do:

pawn Код:
if(newkeys & KEY_FIRE)
Reply
#5

show the public where you create the code
Reply
#6

Quote:
Originally Posted by Ahmad45123
Посмотреть сообщение
You don't do :
pawn Код:
if(newkeys == KEY_FIRE)
but you do:

pawn Код:
if(newkeys & KEY_FIRE)
still error Ya 7opy
Quote:

error 010: invalid function or declaration

Reply
#7

show in what public you add this code!
Reply
#8

2enta mota2kd enha fel OnPlayerKeyStateChange ?
Reply
#9

As Ultra said, show all the callback where you have put this function
Reply
#10

well just try this :
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_FIRE)
    {
       TextDrawHideForPlayer(playerid, Sky0);
       TextDrawHideForPlayer(playerid, Sky1);
       TextDrawHideForPlayer(playerid, Sky3);
       TextDrawHideForPlayer(playerid, Sky4);
       TextDrawHideForPlayer(playerid, Sky5);
       TextDrawHideForPlayer(playerid, Sky6);
       TextDrawHideForPlayer(playerid, Sky7);
       TextDrawHideForPlayer(playerid, Sky8);
       TextDrawHideForPlayer(playerid, Sky9);
       TextDrawHideForPlayer(playerid, Sky10);
       TextDrawHideForPlayer(playerid, Sky11);
       TextDrawHideForPlayer(playerid, Sky12);
       TextDrawHideForPlayer(playerid, Sky13);
       TextDrawHideForPlayer(playerid, Sky14);
       TextDrawHideForPlayer(playerid, Sky15);
       TextDrawHideForPlayer(playerid, Sky16);
       TextDrawHideForPlayer(playerid, Sky17);
       TextDrawHideForPlayer(playerid, Sky18);
       TextDrawHideForPlayer(playerid, Sky19);
       TextDrawHideForPlayer(playerid, Sky20);
       TextDrawHideForPlayer(playerid, Sky21);
       TextDrawHideForPlayer(playerid, Sky22);
       TextDrawHideForPlayer(playerid, Sky23);
       TextDrawHideForPlayer(playerid, Sky24);
       TextDrawHideForPlayer(playerid, Sky25);
       TextDrawHideForPlayer(playerid, Sky26);
       TextDrawHideForPlayer(playerid, Sky27);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)