Jump to content

fbi

Membru
  • Posts

    49
  • Joined

  • Last visited

    Never

Posts posted by fbi

  1. Salut am o problema sa pornesc acest gamemod http://forum.sa-mp.com/showthread.php?t=397656 am vrut sa il pornesc sa ma joc cu inca cativa vecini si nu pot sa il pornesc daca cineva m-ar putea ajuta sami explice cum sau sa mil aseze direct intru server ii multumesc mult!

  2. new cmd[256],idx;

    cmd = strtok(cmdtext, idx);

    if(strcmp(cmd, "/veh", true) == 0)

    {

        new string[50];

        tmp = strtok(cmdtext, idx);

        if(!strlen(tmp)) return SendClientMessage(playerid, COLOR, "USAGE: /veh [carid] [color1] [color2]");

        new car;

        car = strval(tmp);

        if(car < 400 || car > 611) return SendClientMessage(playerid, RED, "Vehicle id can't be below 400 nor above 611");

        tmp = strtok(cmdtext, idx);

        if(!strlen(tmp)) return SendClientMessage(playerid, ORANGE, "USAGE: /veh [carid] [color1] [color2]");

        new color1;

        color1 = strval(tmp);

        if(color1 < 0 || color1 > 126) return SendClientMessage(playerid, RED, "Color ID can't be below 0 nor above 126 !");

        tmp = strtok(cmdtext, idx);

        if(!strlen(tmp)) return SendClientMessage(playerid, ORANGE, "USAGE: /veh [carid] [color1] [color2]");

        new color2;

        color2 = strval(tmp);

        if(color2 < 0 || color2 > 126) return SendClientMessage(playerid, RED, "Color ID can't be below 0 nor above 126 !");

        new Float:X,Float:Y,Float:Z,Float:A;

        GetPlayerPos(playerid, X,Y,Z);

        GetPlayerFacingAngle(playerid,A);

        new carid = CreateVehicle(car, X,Y,Z, A, color1, color2, 6000);

        LinkVehicleToInterior(carid,GetPlayerInterior(playerid));

        SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));

        format(string, sizeof(string), "Vehicle ID %d spawned.", carid);

        SendClientMessage(playerid, GREEN, string);

        return 1;

    }

    asta e buna?
  3. dece nu o pot compila ca fs? imi da dont send

    prima mea comanda:)

                                           

    new cmd_giveweapon[] = "/giveweapon";

    cmd_giveweapon(playerid,params[])

    {

    if(IsPlayerMod(playerid,"giveweapon"))

    SendClientMessage(playerid,COLOR_RED,"You must be a Moderator or higher to usee this Command");

    {

    new

    lookupid = NameLookup(param,playerid);

    if(!param[0])

    }

    else if(lookupid !=INVALID_PLAYER_ID)

        {

            SendClientMessage(playerid,COLOR_RED,"You cannot give a weapon to a nonexistent or disconnected player!");

    }

    {

    new

    weaponid =

    }

  4. imi da eroare am adaugat asa:

    public OnGameModeInit()

                SetWorldTime(12);

    eroarea/ile

                                     

    D:\server3\gamemodes\tAxIFR.pwn(987) : error 055: start of function body without function header

    D:\server3\gamemodes\tAxIFR.pwn(1006) : error 021: symbol already defined: "print"

    D:\server3\gamemodes\tAxIFR.pwn(1010) : error 021: symbol already defined: "format"

    D:\server3\gamemodes\tAxIFR.pwn(1016) : error 021: symbol already defined: "print"

    D:\server3\gamemodes\tAxIFR.pwn(1018) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1022) : error 021: symbol already defined: "format"

    D:\server3\gamemodes\tAxIFR.pwn(1028) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1031) : error 021: symbol already defined: "strings"

    D:\server3\gamemodes\tAxIFR.pwn(1058) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1059) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1060) : error 021: symbol already defined: "CreateStreamMapIcon"

    D:\server3\gamemodes\tAxIFR.pwn(1062) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1063) : error 021: symbol already defined: "CreateStreamMapIcon"

    D:\server3\gamemodes\tAxIFR.pwn(1066) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1067) : error 021: symbol already defined: "CreateStreamMapIcon"

    D:\server3\gamemodes\tAxIFR.pwn(1071) : error 021: symbol already defined: "format"

    D:\server3\gamemodes\tAxIFR.pwn(1083) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1088) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1099) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1105) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1110) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1115) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1120) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1125) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1130) : error 010: invalid function or declaration

    D:\server3\gamemodes\tAxIFR.pwn(1135) : error 010: invalid function or declaration

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

    26 Errors.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.