Jump to content
  • 0

Am si eu o mica probleme



Vreau sa incep un GM de stunt dar am cateva probleme.

Sunt incepator deci asi vrea sa nu va luati de mine.

1) Imi tot apare eroarea asta si nu stiu cum sa scap de ea: 

fatal error 100: cannot read from file: "colors"

2) Nu stiu cum sa fac sa salvez deoarece atunci cand salvez in Pawn tot ce am scris se salveaza pe gamemode dar atunci cand intru pe samp nu sa modificat nimic.

Spre exemplu am facut comanda asta si pe joc nu functioneaza ( Imi zice ca comanda nu exista):

    if(gUser[playerid][U_MODE] != MODE_FREEROAM) return GameTextForPlayer(playerid, "~r~You must be in freeroam", 5000, 3);

    if(! IsPlayerSpawned(playerid)) return GameTextForPlayer(playerid, "~r~You must be spawned", 5000, 3);

    new Float:pos[4];
    GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
    GetPlayerFacingAngle(playerid, pos[3]);

    if(IsValidVehicle(gUser[playerid][U_VEHICLE])) DestroyVehicle(gUser[playerid][U_VEHICLE]);
    gUser[playerid][U_VEHICLE] = CreateVehicle(444, pos[0], pos[1], pos[2] + 2.0, pos[3], random(255), random(255), -1);
    LinkVehicleToInterior(gUser[playerid][U_VEHICLE], GetPlayerInterior(playerid));
    SetVehicleVirtualWorld(gUser[playerid][U_VEHICLE], GetPlayerVirtualWorld(playerid));
    PutPlayerInVehicle(playerid, gUser[playerid][U_VEHICLE], 0);

    GameTextForPlayer(playerid, "~b~~h~~h~~h~Monster spawned", 5000, 3);
    return 1;



Edited by Roby2234
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.