Jump to content

Question

Posted (edited)

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):

CMD:monster(playerid)
{
    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;
}

1.PNG

2.PNG

Edited by Roby2234

7 answers to this question

Recommended Posts

  • 0
Posted (edited)
Acum 3 minute, Elkes a spus:

Verifica daca ai in include-urile cu care compilezi fisierul "colors.inc".

Nu am. Ai discord ?

 

 

Edited by Roby2234
  • 0
Posted
Acum 1 minut, Elkes a spus:

Daca nu-l ai, singura solutie e sa stergi linia

 

Am incercat dar apoi imi da aceasi eroare pentru 

#include <playerstates>

  • 0
Posted

Cauti pe internet acele .inc , le downloadezi si le pui in x/pawn/includes. simplu...

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.