[HELP]CreateVehicle and Lock it
#3

Spider, i love you so much... but this happend.

Код:
C:\Documents and Settings\ERO\Escritorio\Mi Servidor SAMP Pruebas Privadas\Server Pruebas Privado (Hosting)\gamemodes\rtscript.pwn(1931) : warning 209: function "dcmd_vcar" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
pawn Код:
dcmd_vcar(playerid, params[])
{
#pragma unused params
if(PlayerData[playerid][VIP] == 1)
{
new Float:X,Float:Y,Float:Z,Float:Angle,carid;
new id = PlayerData[playerid][VIPCar];
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = CreateVehicle(id,X,Y,Z,Angle,-1,-1,50000);
PutPlayerInVehicle(playerid,carid,0);
TogglePlayerControllable(playerid,true);
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid,GetPlayerVirtualWorld(playerid));
SendClientMessage(playerid, COLOUR_ORANGE, "You have spawned your VIP Vehicle.");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(i != playerid)
{
SetVehicleParamsForPlayer(carid, i, 0, 1);
}
}
}
else return 0;
} //<-- HERE IS THE WARING
Edit: I use the /vcar ingame, and the game is crash
Reply


Messages In This Thread
[HELP]CreateVehicle and Lock it - by _ERO_ - 25.08.2009, 13:38
Re: [HELP]CreateVehicle and Lock it - by SpiderPork - 25.08.2009, 13:40
Re: [HELP]CreateVehicle and Lock it - by _ERO_ - 25.08.2009, 13:48
Re: [HELP]CreateVehicle and Lock it - by _ERO_ - 25.08.2009, 14:02

Forum Jump:


Users browsing this thread: 1 Guest(s)