Jump to content

Roby2234

Membru
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Roby2234

  1. Vreau sa incep un GM de stunt dar am cateva probleme. Sunt incepator deci asi vrea sa nu va luati de mine. 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:infernus(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(411, 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~Infernus spawned", 5000, 3); return 1; }
  2. Am incercat dar apoi imi da aceasi eroare pentru #include <playerstates>
  3. 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; }
×
×
  • 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.