Jump to content
  • 0

Masina


eXtreMe96

Question

11 answers to this question

Recommended Posts

se refera la comanda /v sau /veh cand apare o masina nu e di nserver e ca si vcum o creezi si daca o distrugi ea apare tot acolo si el vrea sa nu mai apara ca sa nu mai dea restart la server de fiecare data cand a folosit /v

la asta ma intrebam si eu ar nu cred ca exista vreo comanda sia dispara....

Link to comment
Share on other sites

Trebuie sa mai modifici inca umpic, sa numesti vehiculele ...

ca si functie:

//sus in script
new VVehicle[MAX_PLAYERS];

//undeva in script
stock CreateVVehicle(playerid, modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
{
    VVehicle[playerid] = CreateVehicle(modelid,x,y,z,angle,color1,color2,respawn_delay);
    PutPlayerInVehicle(playerid,VVehicle[playerid],0);
}

//onplayerdisconnect
if(VVehicle[playerid] ! = 0) 
{
    DestroyVehicle(VVehicle[playerid]); 
    VVehicle[playerid] = 0;
}

//ongamemodeinit
for(new i;i<MAX_PLAYERS;i++) VVehicle[i] = 0;
Asta ar trebui sa mearga. Tutorial: In loc de
PutPlayerInVehicle(playerid,CreateVehicle( model,X,Y,Z,angle,color1,color2,respawn_delay),seatid);
folosesti
CreateVVehicle(playerid, modelid, X,Y,Z, angle, color1, color2, respawn);

PS: Mult mai simplu, parerea mea :D

Link to comment
Share on other sites

D:\????? ????? (3)\gamemodes\SGM.pwn(529) : error 017: undefined symbol "VVehicle"
D:\????? ????? (3)\gamemodes\SGM.pwn(529) : error 017: undefined symbol "i"
D:\????? ????? (3)\gamemodes\SGM.pwn(529) : error 029: invalid expression, assumed zero
D:\????? ????? (3)\gamemodes\SGM.pwn(529) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Rindul 529  for(new i;i<MAX_PLAYERS;i++) VVehicle = 0;

lol

Link to comment
Share on other sites

eXtreMe" post="50451" timestamp="1295120538"]

D:\????? ????? (3)\gamemodes\SGM.pwn(529) : error 017: undefined symbol "VVehicle"
D:\????? ????? (3)\gamemodes\SGM.pwn(529) : error 017: undefined symbol "i"
D:\????? ????? (3)\gamemodes\SGM.pwn(529) : error 029: invalid expression, assumed zero
D:\????? ????? (3)\gamemodes\SGM.pwn(529) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Rindul 529  for(new i;i<MAX_PLAYERS;i++) VVehicle = 0;

Asigura-te ca l-ai pus bine.
Link to comment
Share on other sites

Am uitat sa pun definitul New of ce chior sunt dar apropo nu inteleg pentrucei semnul ! exklamari

if(VVehicle[playerid] ! = 0)  
aicea cu el imi da 4 errori dar fara el 1 warn Xd fara el
D:\????? ????? (3)\gamemodes\SGM.pwn(2559) : warning 211: possibly unintended assignment
cu el
D:\????? ????? (3)\gamemodes\SGM.pwn(2559) : error 001: expected token: ")", but found "!"
D:\????? ????? (3)\gamemodes\SGM.pwn(2559) : error 029: invalid expression, assumed zero
D:\????? ????? (3)\gamemodes\SGM.pwn(2559) : warning 215: expression has no effect
D:\????? ????? (3)\gamemodes\SGM.pwn(2559) : error 001: expected token: ";", but found ")"
D:\????? ????? (3)\gamemodes\SGM.pwn(2559) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
[code]

lol

Link to comment
Share on other sites

Oh, greseala mea, in loc de

if(VVehicle[playerid] ! = 0)
{
    DestroyVehicle(VVehicle[playerid]);
    VVehicle[playerid] = 0;
}
pune
if(VVehicle[playerid] != 0)
{
    DestroyVehicle(VVehicle[playerid]);
    VVehicle[playerid] = 0;
}

intre ! si = nu trebuia spatiu.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.