Spawned Vehicles - Respawn?
#7

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
This should help you

pawn Код:
new gVDestroy[MAX_VEHICLES];
pawn Код:
if (strcmp("/cheetah", cmdtext, true, 10) == 0)
{
    if(IsPlayerInAnyVehicle(playerid)) {
        SendClientMessage(playerid,COLOR_RED,"You are already in a vehicle!");
        return 1;
    }
    new
        Float: X,
        Float: Y,
        Float: Z,
        Float: Angle;
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    new vehicleid = CreateVehicle(415,X,Y,Z,Angle,-1,-1,600);
    PutPlayerInVehicle(playerid, vehicleid, 0);
    gVDestory[vehicleid - 1] = true;
    return 1;
}
pawn Код:
//OnVehicleSpawn
    if(gVDestroy[vehicleid - 1] == true) {
        gVDestroy[vehicleid - 1] = false;
        DestroyVehicle(vehicleid);
    }
Tryed all that but these error's came out.

Код:
C:\Documents and Settings\...\Desktop\Server_Script\gamemodes\NFS-MW.pwn(329) : error 017: undefined symbol "gVDestroy"
C:\Documents and Settings\...\Desktop\Server_Script\gamemodes\NFS-MW.pwn(329) : warning 215: expression has no effect
C:\Documents and Settings\...\Desktop\Server_Script\gamemodes\NFS-MW.pwn(329) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\...\Desktop\Server_Script\gamemodes\NFS-MW.pwn(329) : error 029: invalid expression, assumed zero
C:\Documents and Settings\...\Desktop\Server_Script\gamemodes\NFS-MW.pwn(329) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
329.    if(gVDestroy[vehicleid - 1] == true) {
Reply


Messages In This Thread
Spawned Vehicles - Respawn? - by Rolyy - 27.02.2011, 11:47
Re: Spawned Vehicles - Respawn? - by Davz*|*Criss - 27.02.2011, 11:48
Re: Spawned Vehicles - Respawn? - by Rolyy - 27.02.2011, 11:50
Re: Spawned Vehicles - Respawn? - by Davz*|*Criss - 27.02.2011, 11:52
Re: Spawned Vehicles - Respawn? - by Rolyy - 27.02.2011, 11:52
AW: Spawned Vehicles - Respawn? - by Nero_3D - 27.02.2011, 11:59
Re: AW: Spawned Vehicles - Respawn? - by Rolyy - 27.02.2011, 12:07
AW: Re: AW: Spawned Vehicles - Respawn? - by Nero_3D - 27.02.2011, 12:32
Re: Spawned Vehicles - Respawn? - by Rolyy - 27.02.2011, 12:34
Re: Spawned Vehicles - Respawn? - by Mean - 27.02.2011, 12:44

Forum Jump:


Users browsing this thread: 2 Guest(s)