SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 08/06/2016, 08:06 PM   #1
CoLLS
Little Clucker
 
Join Date: Oct 2014
Posts: 6
Reputation: 0
Default La ultimul CP nu primesc banii.

Fac cursa, totul merge OK, cand ajung la ultimul CP si intru in el, se blocheaza si nu primesc banii in banca. Cand ies din masina imi zice Mission Failed. De ce ?



HTML Code:
    case CHECKPOINT_TRASH:
        {
			 if(PlayerInfo[playerid][pJobTime] > 0)
			 {
				 if(PlayerInfo[playerid][pJobTime] != 45)
				 {
				     new id = PlayerInfo[playerid][pJobTime]-1;
				     if(IsPlayerInRangeOfPoint(playerid,15.0,TrashRoute[id][0],TrashRoute[id][1],TrashRoute[id][2]))
				     {
				         PlayerInfo[playerid][pJobTime]++;
                         DisablePlayerCheckpoint(playerid);
			             SetTimerEx("NextGarbage", 1000, false, "i", playerid);
				         TogglePlayerControllableEx(playerid,false);
		                 GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Se descarca materialele..",1000,3);
		                 SetPVarInt(playerid, "CheckJobRoute", 300);
		             }
		             else SetPlayerCheckpoint(playerid,TrashRoute[id][0],TrashRoute[id][1],TrashRoute[id][2],5.0);
		         }
		         else
		         {
		             DeletePVar(playerid,"JobVehicleID");
		             SendClientMessage(playerid,COLOR_LIGHTBLUE,"Ai completat tura de curier si ai primit $3000 la paycheck");
			         SetPVarInt(playerid, "CheckEarn", 3000+GetPVarInt(playerid, "CheckEarn"));
                     TogglePlayerAllDynamicCPs(playerid, true);
                     SetPVarInt(playerid, "Checkpoint", CHECKPOINT_NONE);
                     PlayerInfo[playerid][pJobTime]=0;
                     SetVehicleToRespawn(GetPlayerVehicleID(playerid));
					 DisablePlayerCheckpoint(playerid);
					 PlayAudioStreamForPlayerEx(playerid, "http://pr-gta.com/pr-rp-soundeffects/theme.mp3");
					 DeletePVar(playerid, "CheckJobRoute");
					 //CallRemoteFunction("GiveAchievement", "iii", playerid, 17, 1);
		         }
			 }
        }
CoLLS is offline  
Old 10/06/2016, 10:51 AM   #2
jazzyKISS
Huge Clucker
 
jazzyKISS's Avatar
 
Join Date: May 2015
Location: Craiova City
Posts: 328
Reputation: 2
Default Re: La ultimul CP nu primesc banii.

Nu prea inteleg nimic din codul oferit de tine.
Sa inteleg ca acesta este ultimul cp sau .. ?
Daca acesta este ultimul cp :
1.Nu ai functia care sa ii ofere bani jucatorului dupa ce termina cursa.
2.Nu ai functia care sa deblocheze jucatorul dupa ce termina cursa.
jazzyKISS is offline  
Old 10/06/2016, 06:03 PM   #3
CoLLS
Little Clucker
 
Join Date: Oct 2014
Posts: 6
Reputation: 0
Default Re: La ultimul CP nu primesc banii.

Mai era si Street Sweep la fel si acela merge, l-am facut sa mearga, dar la asta nu stiu.
CoLLS is offline  
Old 12/06/2016, 10:28 AM   #4
shiftlol
Banned
 
Join Date: Dec 2014
Location: Republic of Moldova
Posts: 43
Reputation: 2
Default Re: La ultimul CP nu primesc banii.

Quote:
Originally Posted by CoLLS View Post
Fac cursa, totul merge OK, cand ajung la ultimul CP si intru in el, se blocheaza si nu primesc banii in banca. Cand ies din masina imi zice Mission Failed. De ce ?



HTML Code:
    case CHECKPOINT_TRASH:
        {
			 if(PlayerInfo[playerid][pJobTime] > 0)
			 {
				 if(PlayerInfo[playerid][pJobTime] != 45)
				 {
				     new id = PlayerInfo[playerid][pJobTime]-1;
				     if(IsPlayerInRangeOfPoint(playerid,15.0,TrashRoute[id][0],TrashRoute[id][1],TrashRoute[id][2]))
				     {
				         PlayerInfo[playerid][pJobTime]++;
                         DisablePlayerCheckpoint(playerid);
			             SetTimerEx("NextGarbage", 1000, false, "i", playerid);
				         TogglePlayerControllableEx(playerid,false);
		                 GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Se descarca materialele..",1000,3);
		                 SetPVarInt(playerid, "CheckJobRoute", 300);
		             }
		             else SetPlayerCheckpoint(playerid,TrashRoute[id][0],TrashRoute[id][1],TrashRoute[id][2],5.0);
		         }
		         else
		         {
		             DeletePVar(playerid,"JobVehicleID");
		             SendClientMessage(playerid,COLOR_LIGHTBLUE,"Ai completat tura de curier si ai primit $3000 la paycheck");
			         SetPVarInt(playerid, "CheckEarn", 3000+GetPVarInt(playerid, "CheckEarn"));
                     TogglePlayerAllDynamicCPs(playerid, true);
                     SetPVarInt(playerid, "Checkpoint", CHECKPOINT_NONE);
                     PlayerInfo[playerid][pJobTime]=0;
                     SetVehicleToRespawn(GetPlayerVehicleID(playerid));
					 DisablePlayerCheckpoint(playerid);
					 PlayAudioStreamForPlayerEx(playerid, "http://pr-gta.com/pr-rp-soundeffects/theme.mp3");
					 DeletePVar(playerid, "CheckJobRoute");
					 //CallRemoteFunction("GiveAchievement", "iii", playerid, 17, 1);
		         }
			 }
        }
ma pune tot codul ca sa te putem ajuta
shiftlol is offline  
Old 12/06/2016, 10:32 AM   #5
shiftlol
Banned
 
Join Date: Dec 2014
Location: Republic of Moldova
Posts: 43
Reputation: 2
Default Re: La ultimul CP nu primesc banii.

daca vom trage atentie la accest mesaj
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Ai completat tura de curier si ai primit $3000 la paycheck");
atunci pune sub el
GivePlayerMoney(playerid, 3000 ); ca sa ofere banii jucatorului
shiftlol is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 08:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.