4 errors(compile) in_array doesn't work
#10

PHP код:
C:\Users\ZOFTer\Desktop\0.3Z server\gamemodes\UG-RP.pwn(24976) : error 029invalid expressionassumed zero
C
:\Users\ZOFTer\Desktop\0.3Z server\gamemodes\UG-RP.pwn(24976) : error 001expected token","but found "sizeof"
C:\Users\ZOFTer\Desktop\0.3Z server\gamemodes\UG-RP.pwn(24976) : warning 215expression has no effect
C
:\Users\ZOFTer\Desktop\0.3Z server\gamemodes\UG-RP.pwn(24976) : error 001expected token";"but found ")"
C:\Users\ZOFTer\Desktop\0.3Z server\gamemodes\UG-RP.pwn(24976) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

PHP код:

if(dialogid == SKINMENU
    { 
         if(
response
        { 
            new 
price BizzInfo[PlayerInfo[playerid][InBusiness]][bProductPrice1]; 
            new 
Coolarray[][] = { 
                
"70"
                
"71"
                
"274" 
            
}; 
                if(!(
in_array(Coolarray[], valuesize sizeof Coolarray))) {  // 24976
                
if(strval(inputtext) < || strval(inputtext) > 299) { SendClientMessage(playeridCOLOR_GREY"   Skin can't be below 0 or above 299!"); return 1; } 
                if(
IsInvalidSkin(strval(inputtext))) { SendClientMessage(playeridCOLOR_GREY"   Invalid skin!"); return 1; } 
                if(
PlayerInfo[playerid][pCash] >= price
                { 
                    
SetPlayerSkin(playeridstrval(inputtext)); 
                    
PlayerInfo[playerid][pModel] = strval(inputtext); 
                    
format(stringsizeof(string), "You're new clothes have been purchased for $%d."price); 
                    
SendClientMessage(playeridCOLOR_YELLOWstring); 
                    
PlayerInfo[playerid][pCash] -= price
                    
GivePlayerMoney(playerid, -price); 
                    
BizzInfo[PlayerInfo[playerid][InBusiness]][bTill] += price
                    
SaveBusiness(PlayerInfo[playerid][InBusiness]); 
                } 
                else 
                { 
                    
SendClientMessage(playeridCOLOR_GREY"You don't have enough money!"); 
                    return 
1
                } 
            } 
            else 
            { 
                
SendClientMessage(playeridCOLOR_GREY"Restricted skin!"); 
                return 
1
               } 
        } 
    } 
Reply


Messages In This Thread
4 errors(compile) in_array doesn't work - by MCZOFT - 24.10.2014, 22:54
Re: 4 errors(compile) in_array doesn't work - by Quickie - 25.10.2014, 04:28
Re : 4 errors(compile) in_array doesn't work - by MCZOFT - 25.10.2014, 17:50
Re: 4 errors(compile) in_array doesn't work - by Sawalha - 25.10.2014, 18:07
Re : 4 errors(compile) in_array doesn't work - by MCZOFT - 25.10.2014, 18:10
Re: 4 errors(compile) in_array doesn't work - by Sawalha - 25.10.2014, 18:13
Re : 4 errors(compile) in_array doesn't work - by MCZOFT - 25.10.2014, 18:23
Re: 4 errors(compile) in_array doesn't work - by Sawalha - 25.10.2014, 18:26
Re : 4 errors(compile) in_array doesn't work - by MCZOFT - 25.10.2014, 18:49
Re : 4 errors(compile) in_array doesn't work - by MCZOFT - 25.10.2014, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)