SA-MP Forums Archive
[HELP] Where to put this line - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Where to put this line (/showthread.php?tid=452101)



[HELP] Where to put this line - AchievementMaster360 - 20.07.2013

Well I'm Not sure where to put this line
Код:
new string[128], giveplayerid;
In this Refund system
Код:
if(dialogid == REFUND)
	{
		if(response)
		{
			if(listitem == 0)
   			{
				SendClientMessageEx(playerid, COLOR_GRAD2, "Your have chosen a refund of Bronze VIP with $7,000,000");
            	PlayerInfo[giveplayerid][pDonateRank] = 1;
				PlayerInfo[giveplayerid][pTempVIP] = 2592000;
				PlayerInfo[giveplayerid][pBuddyInvited] = 1;
				GivePlayerCash(giveplayerid, 7000000);
				PlayerInfo[playerid][pRefund] = 1;
			}
			if(listitem == 1)
			{
            	SendClientMessageEx(playerid, COLOR_GRAD2, "Your have chosen a refund of Silver VIP with $5,000,000");
            	PlayerInfo[giveplayerid][pDonateRank] = 2;
				PlayerInfo[giveplayerid][pTempVIP] = 2592000;
				PlayerInfo[giveplayerid][pBuddyInvited] = 1;
				GivePlayerCash(giveplayerid, 5000000);
				PlayerInfo[playerid][pRefund] = 1;
   			}
            if(listitem == 2)
			{
            	SendClientMessageEx(playerid, COLOR_GRAD2, "Your have chosen a refund of Gold VIP with $3,000,000");
            	PlayerInfo[giveplayerid][pDonateRank] = 3;
				PlayerInfo[giveplayerid][pTempVIP] = 2592000;
				PlayerInfo[giveplayerid][pBuddyInvited] = 1;
				GivePlayerCash(giveplayerid, 3000000);
				PlayerInfo[playerid][pRefund] = 1;
   			}
      		}
	}



Re: [HELP] Where to put this line - DaTa[X] - 20.07.2013

pawn Код:
if(dialogid == REFUND)
    {
        new string[128], giveplayerid;