Проблема с PVarInt
#1

PHP код:
CMD:changebizness(playerid,params[])
{
    new 
str[32],string[144];
    if(
Player[playerid][Bizness] == 0)return SCM(playerid,-1,"У вас нету бизнеса");
    switch(
Player[playerid][Bizness])
    {
        case 
1:format(str,sizeof(str),"Ammo Los Santos");
    }
    new 
idplayer,cash;
    if(
sscanf(params,"dd",idplayer,cash))return SCM(playerid,-1,"Введите /changebizness [id покупателя] [сумма]");
    
//if(idplayer == playerid)return SCM(playerid,-1,"Вы не можете продать бизнес себе");
    
SendFormatedMessage(idplayer,-1,"%s предложил купить его бизнесс %s за %d. Введите Y для согласия или N для отмены",Player[playerid][Nick],str,cash);
    
SetPVarInt(idplayer,"Bizness",Player[playerid][Bizness]);
    
SetPVarInt(idplayer,"bID",playerid);
    
SetPVarInt(idplayer,"Cash",cash);
    
SetPVarInt(idplayer,"TypeArgeement",1);
    
format(string,sizeof(string),"%d",GetPVarInt(idplayer,"TypeArgeement"));
    
SCM(idplayer,-1,string);
    return 
true;
} 
Вместо 1 выводит 0
Reply


Messages In This Thread
Проблема с PVarInt - by Aizov - 15.06.2014, 15:54
Re: Проблема с PVarInt - by Stepashka - 15.06.2014, 16:21
Re: Проблема с PVarInt - by Jon_De - 15.06.2014, 17:12
Re: Проблема с PVarInt - by Stepashka - 15.06.2014, 17:18
Re: Проблема с PVarInt - by Ru-user - 15.06.2014, 17:28
Re: Проблема с PVarInt - by Stepashka - 15.06.2014, 17:30
Re: Проблема с PVarInt - by Aizov - 15.06.2014, 17:32
Re: Проблема с PVarInt - by Ru-user - 15.06.2014, 17:44
Re: Проблема с PVarInt - by Stepashka - 15.06.2014, 17:48
Re: Проблема с PVarInt - by Ru-user - 15.06.2014, 18:17
Re: Проблема с PVarInt - by Stepashka - 15.06.2014, 18:22
Re: Проблема с PVarInt - by Ru-user - 15.06.2014, 18:52
Re: Проблема с PVarInt - by Stepashka - 15.06.2014, 18:58
Re: Проблема с PVarInt - by Jon_De - 15.06.2014, 20:59
Re: Проблема с PVarInt - by OKStyle - 16.06.2014, 02:37
Re: Проблема с PVarInt - by Aizov - 16.06.2014, 06:19
Re: Проблема с PVarInt - by OKStyle - 16.06.2014, 08:33
Re: Проблема с PVarInt - by Aizov - 16.06.2014, 12:01
Re: Проблема с PVarInt - by White_116 - 16.06.2014, 12:18
Re: Проблема с PVarInt - by Aizov - 16.06.2014, 12:23
Re: Проблема с PVarInt - by White_116 - 16.06.2014, 12:28
Re: Проблема с PVarInt - by Aizov - 16.06.2014, 18:50
Re: Проблема с PVarInt - by OKStyle - 17.06.2014, 03:11

Forum Jump:


Users browsing this thread: 1 Guest(s)