SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 27/03/2018, 09:13 PM   #1
Filip21
Little Clucker
 
Join Date: Nov 2017
Posts: 7
Reputation: 0
Default Problema cu gasirea masinile personale.

Bun deci am o problema, am facut comanda vipname si problem este ca daca dai /vipname pe o masina personala spune ca nu sunt intr-una.

PHP Code:
new PlayerSlot playerVariables[playerid][VehicleSlot]; 
if(
PVeh[PlayerSlot][playerid][Vehicle] != vehicleid) return SCM(playeridCOLOR_GREY"You have to be in your personal vehicle!"); 
Nu inteleg care ar fii problema, la restrictia asta m-am luat dupa comanda /park si aia functioneaza cum trebuie...
Filip21 is offline  
Old 27/03/2018, 09:25 PM   #2
Calinut200
Little Clucker
 
Join Date: Jun 2016
Posts: 31
Reputation: 0
Default Re: Problema cu gasirea masinile personale.

Incearca sa faci ceva de genu

PHP Code:
new PlayerSlot playerVariables[playerid][VehicleSlot];  
if(
PVeh[PlayerSlot][playerid][Vehicle] != vehicleid
{
      
codu tau
}
else
{
return 
SCM(playeridCOLOR_GREY"You have to be in your personal vehicle!");  

Calinut200 is offline  
Old 28/03/2018, 09:05 AM   #3
ForCop
Banned
 
Join Date: Mar 2018
Location: Moldova of Republic
Posts: 116
Reputation: 5
Default Re: Problema cu gasirea masinile personale.

Quote:
Originally Posted by Calinut200 View Post
Incearca sa faci ceva de genu

PHP Code:
new PlayerSlot playerVariables[playerid][VehicleSlot];  
if(
PVeh[PlayerSlot][playerid][Vehicle] != vehicleid
{
      
codu tau
}
else
{
return 
SCM(playeridCOLOR_GREY"You have to be in your personal vehicle!");  

Code:
new PlayerSlot = playerVariables[playerid][VehicleSlot];   // nu este nevoie de creat variabila daca folosesti numai odata playerVariables[playerid][VehicleSlot]
if(PVeh[PlayerSlot][playerid][Vehicle] != vehicleid)  //putem pune si aici playerVariables[playerid][VehicleSlot]
{ 
      codu tau 

} else  return SCM(playerid, COLOR_GREY, "You have to be in your personal vehicle!");
ForCop is offline  
Old 02/04/2018, 12:41 AM   #4
Filip21
Little Clucker
 
Join Date: Nov 2017
Posts: 7
Reputation: 0
Default Re: Problema cu gasirea masinile personale.

E acelasi lucru cum am facut eu....
Filip21 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 12:58 AM.


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