19.07.2015, 10:16
Hi i have an script and i got these errors
And i have this pastebin.
PHP код:
C:\Users\oc\Desktop\Limitless Gaming by Syntax\gamemodes\CG-RP1.pwn(8585) : error 079: inconsistent return types (array & non-array)
C:\Users\oc\Desktop\Limitless Gaming by Syntax\gamemodes\CG-RP1.pwn(8595) : error 079: inconsistent return types (array & non-array)
C:\Users\oc\Desktop\Limitless Gaming by Syntax\gamemodes\CG-RP1.pwn(8597) : error 079: inconsistent return types (array & non-array)
C:\Users\oc\Desktop\Limitless Gaming by Syntax\gamemodes\CG-RP1.pwn(8630) : error 079: inconsistent return types (array & non-array)
C:\Users\oc\Desktop\Limitless Gaming by Syntax\gamemodes\CG-RP1.pwn(8662) : error 079: inconsistent return types (array & non-array)
C:\Users\oc\Desktop\Limitless Gaming by Syntax\gamemodes\CG-RP1.pwn(8664) : error 079: inconsistent return types (array & non-array)
C:\Users\oc\Desktop\Limitless Gaming by Syntax\gamemodes\CG-RP1.pwn(8669) : error 079: inconsistent return types (array & non-array)
C:\Users\oc\Desktop\Limitless Gaming by Syntax\gamemodes\CG-RP1.pwn(8901) : error 079: inconsistent return types (array & non-array)
Код:
if(dialogid == DIALOG_OOCSHOP) { if(response) { if(listitem == 0) { if(PlayerInfo[playerid][pGoldBars] >= 5) { SendClientMessage(playerid , COLOR_WHITE,"You have bought a Respect Points Boost - It will last for 1 Hour"); PlayerInfo[playerid][pRPBoost] = 1; PlayerInfo[playerid][pGoldBars] = PlayerInfo[playerid][pGoldBars] -5; } else { SendClientMessage(playerid,COLOR_GREY,"ERROR : You don't have enough Gold-Bars "); } } if(listitem == 1) { if(PlayerInfo[playerid][pGoldBars] >= 20) { SendClientMessage(playerid, COLOR_WHITE,"You have bought Bronze VIP Status - It will last for 1 Month"); PlayerInfo[playerid][pDonateRank] = 1; PlayerInfo[playerid][pGoldBars] = PlayerInfo[playerid][pGoldBars] -20; } else { SendClientMessage(playerid,COLOR_GREY,"ERROR : You don't have enough Gold-Bars "); } } if(listitem == 2) { if(PlayerInfo[playerid][pGoldBars] >= 40) { SendClientMessage(playerid, COLOR_WHITE,"You have bought Silver VIP Status - It will last for 1 Month"); PlayerInfo[playerid][pDonateRank] = 2; PlayerInfo[playerid][pGoldBars] = PlayerInfo[playerid][pGoldBars] -40; } else { SendClientMessage(playerid,COLOR_GREY,"ERROR : You don't have enough Gold-Bars "); } } if(listitem == 3) { if(PlayerInfo[playerid][pGoldBars] >= 70) { SendClientMessage(playerid , COLOR_WHITE,"You have bought Gold VIP Status - It will last for 1 Month "); PlayerInfo[playerid][pDonateRank] = 3; PlayerInfo[playerid][pGoldBars] = PlayerInfo[playerid][pGoldBars] -70; } else { SendClientMessage(playerid,COLOR_GREY,"ERROR : You don't have enough Gold-Bars "); } } if(listitem == 4) { if(PlayerInfo[playerid][pGoldBars] >= 100) { SendClientMessage(playerid, COLOR_WHITE,"You have bought Platinium VIP Status - It will last for 1 Month"); PlayerInfo[playerid][pDonateRank] = 4; PlayerInfo[playerid][pGoldBars] = PlayerInfo[playerid][pGoldBars] -100; } else { SendClientMessage(playerid,COLOR_GREY,"ERROR : You don't have enough Gold-Bars "); } } if(listitem == 5) { if(PlayerInfo[playerid][pGoldBars] >= 25) { SendClientMessage(playerid , COLOR_WHITE,"You have bought a Custom House Ticket - Request it from any Admin using /report"); PlayerInfo[playerid][pHouseTicket] = 1; PlayerInfo[playerid][pGoldBars] = PlayerInfo[playerid][pGoldBars] -25; } else { SendClientMessage(playerid,COLOR_GREY,"ERROR : You don't have enough Gold-Bars "); } } if(listitem == 6) { if(PlayerInfo[playerid][pGoldBars] >= 50) { SendClientMessage(playerid , COLOR_WHITE,"You have bought a Custom Business Ticket - Request it from any Admin using /report"); PlayerInfo[playerid][pBusinessTicket] = 1; PlayerInfo[playerid][pGoldBars] = PlayerInfo[playerid][pGoldBars] -50; } else { SendClientMessage(playerid,COLOR_GREY,"ERROR : You don't have enough Gold-Bars "); } } if(listitem == 7) { if(PlayerInfo[playerid][pGoldBars] >= 25) { SendClientMessage(playerid , COLOR_WHITE,"You have bought a Custom Vehicle Ticket - Request it from any Admin using /report"); PlayerInfo[playerid][pVehicleTicket] = 1; PlayerInfo[playerid][pGoldBars] = PlayerInfo[playerid][pGoldBars] -25; } else { SendClientMessage(playerid,COLOR_GREY,"ERROR : You don't have enough Gold-Bars "); } } } return 1; }