21.07.2018, 19:32
When i put this chunk of a code into my gamemode it just simply crashes , any help ? thanks.
https://pastebin.com/RL6irkuE
https://pastebin.com/RL6irkuE
Just don't use pawno. I personally recommend Notepad++, but there is tooling for sublime, atom, vs code, and probably others.
|
ptask Timer_Hunger[18000](playerid) // 1sec - 1000, 1min - 60000, 3min - 180000 { if(!Spawned[playerid]) return 1; if(PlayerInfo[playerid][pThirst] <= 0 || PlayerInfo[playerid][pHunger] <= 0) { new Float:health, Float:damage = float(5 + random(5)); GetPlayerHealth(playerid, health); if(health <= damage) { // dabar nuimsim jau visas HP SendClientMessage(playerid, 0xBABABAFF, "Mir?te d?l tro?kulio arba alkio."); } SetPlayerHealth(playerid, health - damage); } if(PlayerInfo[playerid][pHunger] > 0) SetHungerLevel(playerid, PlayerInfo[playerid][pHunger] - 1 + random(2)); if(PlayerInfo[playerid][pThirst] > 0) SetThirstLevel(playerid, PlayerInfo[playerid][pThirst] - 1 + random(2)); return 1; }
I'm talking about this compiler(https://github.com/pawn-lang/compiler),have you set them up just like in this thread? https://sampforum.blast.hk/showthread.php?tid=626423
|