Need help Plz at error 012,001,029 and warning 215 ...
#1

pwn(5957) : error 012: invalid function call, not a valid address
pwn(5957) : warning 215: expression has no effect
pwn(5957) : warning 215: expression has no effect
pwn(5957) : error 001: expected token: ";", but found ")"
pwn(5957) : error 029: invalid expression, assumed zero
pwn(5957) : fatal error 107: too many error messages on one line



PHP код:
                        public Gift(playerid)
                               {
line pwn(5957)              GiftPlayer(playerid1);    // THIs line Error And Warnings
                           
gifttimer[playerid] = 3600;
                           
gettinggift[playerid] = 0;
                           return 
1;
                                } 
PHP код:
new GiftPlayer[MAX_PLAYERS]; 
PHP код:
    if(strcmp(cmd"/open"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pGiftBoxes] > 0)
            {
                if (
GetPVarInt(playerid"GiftWait") == 0)
                {
                    
PlayerInfo[playerid][pGiftBoxes]--;
                    
GiftPlayer(playerid);
                    
SetPVarInt(playerid"GiftWait"3);
                    return 
1;
                }
                else return 
SendClientMessage(playeridGREY"    You must wait 3 seconds before opening another gift.");
            }
            else
            {
                
SendClientMessage(playeridGREY"    You don't have any gifts to open.");
                return 
1;
            }
        }
        return 
1;
    } 
this error will goes if i delete another script(fuel script)like this /*bla bla */ and delete new GiftPlayer[MAX_PLAYERS];



PHP код:
public CheckGas()
  {
    new 
string[128];
    for(new 
ii<MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
           {
               if(
GetPlayerState(i) == PLAYER_STATE_DRIVER)
               {
                   new 
vehicle GetPlayerVehicleID(i);
                   if(
IsNonFuelVehicle(vehicle)) { return 1; }
                if(
Gas[vehicle] >= 1)
                   {
                       if(
Gas[vehicle] <= 10) { PlayerPlaySound(i10850.00.00.0); }
                       if(
gGas[i] == 1) {
                      
Gas[vehicle]--;
                   }
                   else
                   {
                      
NoFuel[i] = 1;
                      
TogglePlayerControllable(i0);
                       
GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~The Vehicle is out of fuel~n~Use /exit to leave the vehicle",1500,3);
                       return 
1;
                }
            }
        }
    }

Reply
#2

I fail to see how you use arrays and function correctly most of the time, but fail to do so in this instance. "GiftPlayer" is not a function, it is an array and hence GiftPlayer(playerid, 1), whatever that is supposed to do, is completely invalid.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
I fail to see how you use arrays and function correctly most of the time, but fail to do so in this instance. "GiftPlayer" is not a function, it is an array and hence GiftPlayer(playerid, 1), whatever that is supposed to do, is completely invalid.
I am not scripter so plz tell How to set this or right way to gone error ...write that function

Sorry for my bad english
Reply
#4

anyone help plz ...tell me what i do to solve this..
Reply
#5

Change this one :

PHP код:
GiftPlayer(playerid1); 
To :

PHP код:
GiftPlayer[playerid] =1
KillerDVX,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)