#5

Quote:
Originally Posted by MadeMan
pawn Код:
if(strcmp("/car1", cmdtext, true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
        new Float:x, Float:y, Float:z, Float:angle;
        GetPlayerPos(playerid, x, y, z);
        GetPlayerFacingAngle(playerid, angle);
        new car = CreateVehicle(533, x, y, z, angle, -1, -1, 600);
        PutPlayerInVehicle(playerid, car, 0);
    }
    return 1;
}
thankyou very much man, i could never make that myself..
i only got 1 error.

C:\Users\Onno\Documents\ALLIN1\da\gamemodes\saa.pw n(321) : warning 209: function "OnPlayerCommandText" should return a value
C:\Users\Onno\Documents\ALLIN1\da\gamemodes\saa.pw n(322) : error 010: invalid function or declaration


if(strcmp("/car1", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new Float, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
new car = CreateVehicle(415, x, y, z, angle, -1, -1, 600);
PutPlayerInVehicle(playerid, car, 0);
}
return 1;
}
}
return 0; <--322
}
Reply


Messages In This Thread
?? - by PANNA - 07.11.2009, 16:50
Re: ?? - by Correlli - 07.11.2009, 16:52
Re: ?? - by PANNA - 07.11.2009, 17:03
Re: ?? - by MadeMan - 07.11.2009, 17:09
Re: ?? - by PANNA - 07.11.2009, 17:38
Re: ?? - by MadeMan - 07.11.2009, 17:40
Re: ?? - by Peter_Corneile - 07.11.2009, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)