Help admin car
#2

Dear DetoNater,

Well, the very first and obvious error, that you missed a pair of braces. The correct code looks like this:

pawn Код:
CMD:acar(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new Float:x, Float:y, Float:z, Float:az;
        GetPlayerPos(playerid, x, y, z);
        GetPlayerFacingAngle(playerid, az);
        CreateVehicle(596, x+5, y+5, z, az, -1, -1, 180);
    }
    return 1;
}
Also, as a quick note; you'd watch for the correct indentation of your codes.


Kind regard,
T101
Reply


Messages In This Thread
Help admin car - by DetoNater - 10.04.2013, 02:55
Re: Help admin car - by T101 - 10.04.2013, 03:12
Re: Help admin car - by DetoNater - 10.04.2013, 03:28
Re: Help admin car - by T101 - 10.04.2013, 03:33
Re: Help admin car - by Gamer_007 - 10.04.2013, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)