error 029: Invalid Expression, Assumed Zero!
#5

PHP код:
COMMAND:cbuyvip(playeridparams[])
{
    if(!
playerData[playerid][playerLoggedIn]) return   SendClientMessage(playerid, -1"You are not logged in yet to use any commands");
    
            if(
playerData[playerid][cookies] < 500) return SendClientMessage(playerid, -1"You need to have more than 500 cookies to buy VIP");
            
                                new
                
message2[128];
    
                                
playerData[playerid][cookies] = playerData[playerid][cookies] -500;
                                
playerData[playerid][playerVIPLevel] = 1;
                
playerData[playerid][vipExpires] = gettime() + 2592000;
                
playerGiveMoney(playerid500000);
                
playerGiveXP(playerid500);
                
                
format(message2sizeof(message2), "{B7B7B7}[INFO] {FFFFFF}You have bought Standard VIP");
                
SendClientMessage(playeridCOLOR_WHITEmessage2);
                
disableAchieve(playerid);
                
PlayerTextDrawShow(playeridplayerData[playerid][Achieve1]);
                
PlayerTextDrawShow(playeridplayerData[playerid][Achieve2]);
                
PlayerTextDrawShow(playeridplayerData[playerid][Achieve3]);
                
PlayerTextDrawShow(playeridplayerData[playerid][Achieve4]);
                
PlayerTextDrawSetString(playeridplayerData[playerid][Achieve3], "You're VIP!");
                
PlayerTextDrawSetString(playeridplayerData[playerid][Achieve4], "You are now a VIP member, nice!");
                
PlayerPlaySound(playerid1185 ,0.00.00.0);
                
playerData[playerid][achieveTimer] = SetTimerEx("disableAchieve"6000false"i"playerid);
                
playerGiveXP(playerid25);
                
playerData[playerid][playerScore] = playerData[playerid][playerScore] + 2;
                
SetPlayerScore(playeridplayerData[playerid][playerScore]);
    return 
1;

Try now! this is my way of doing it!
Reply


Messages In This Thread
error 029: Invalid Expression, Assumed Zero! - by BlackLineCnR - 23.09.2017, 13:56
Re: error 029: Invalid Expression, Assumed Zero! - by Zedder - 23.09.2017, 14:01
Re: error 029: Invalid Expression, Assumed Zero! - by MEW273 - 23.09.2017, 14:01
Re: error 029: Invalid Expression, Assumed Zero! - by BlackLineCnR - 23.09.2017, 14:10
Re: error 029: Invalid Expression, Assumed Zero! - by Zedder - 23.09.2017, 14:13
Re: error 029: Invalid Expression, Assumed Zero! - by BlackLineCnR - 23.09.2017, 14:21

Forum Jump:


Users browsing this thread: 1 Guest(s)