Halp!
#1

pawn Код:
CMD:vl(playerid, params[])
{
    if(PlayerInfo[playerid][Level] >=5 || IsPlayerAdmin(playerid))
    {
        if(PlayerInfo[playerid][OnDuty] == 0) return SCM(playerid, C_RED, "You're not on duty");
        if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, C_RED, "You need to be in a vehicle");
        new Float:VLX, Float:VLZ, Float:VLY;
        new tmp1[256], tmp2[256], tmp3[256];
        new string[128], Index; tmp1 = strtok(params, Index); tmp2 = strtok(params, Index); tmp3 = strtok(params, Index);
        if(isnull(tmp1) || isnull(tmp2) || isnull(tmp3)) return SCM(playerid, C_RED, "Usage: /vl [X], [Y], [Z]");
        VLX = strval(tmp1);        VLY = strval(tmp2);          VLZ = strval(tmp3);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), VLX, + VLY, + VLZ); //Line 10364 o.o
    }
    else return SendClientMessage(playerid,red, "[ERROR]: You are not a high enough level to use this command");
    return 1;
}
errors given by it:

Код:
D:\San Andreas\A Script Folder\gamemodes\asdfaa.pwn(10364) : error 029: invalid expression, assumed zero
D:\San Andreas\A Script Folder\gamemodes\asdfaa.pwn(10364) : warning 215: expression has no effect
D:\San Andreas\A Script Folder\gamemodes\asdfaa.pwn(10364) : error 029: invalid expression, assumed zero
D:\San Andreas\A Script Folder\gamemodes\asdfaa.pwn(10364) : warning 215: expression has no effect
D:\San Andreas\A Script Folder\gamemodes\asdfaa.pwn(10364) : error 001: expected token: ";", but found ")"
D:\San Andreas\A Script Folder\gamemodes\asdfaa.pwn(10364) : fatal error 107: too many error messages on one line
I tried thousand times but didnt get this code right if anyone could help?
Reply


Messages In This Thread
Halp! - by iBeast - 13.10.2013, 08:35
Re: Halp! - by ]Rafaellos[ - 13.10.2013, 08:43
Re: Halp! - by iBeast - 13.10.2013, 09:02
Re: Halp! - by Konstantinos - 13.10.2013, 09:05
Re: Halp! - by iBeast - 13.10.2013, 09:51
Re: Halp! - by Konstantinos - 13.10.2013, 09:57
Re: Halp! - by iBeast - 13.10.2013, 10:01

Forum Jump:


Users browsing this thread: 1 Guest(s)