Author Topic: Need Help? Ask it here!  (Read 92457 times)

0 Members and 2 Guests are viewing this topic.

Offline Bikerr

  • SA-MP Retirees
  • *
  • *****
  • Posts: 237
  • Get busy living, or get busy dying.
    • Awards
Re: Need Help? Ask it here!
« Reply #45 on: February 01, 2012, 07:53:16 PM »
Got it working, redownloaded it, and now i can open the samp-server.exe. wich u need to have open before compiling and starting up the server.

Thanks guys :D

  Click signature to enlarge and admire!

Quote
"plzz notify me when entering dejo" -sebi.RADIO



Offline PawnFox

  • SA-MP
  • SA-MP Retirees
  • *
  • Posts: 1998
  • 187 Co.
    • Awards
Re: Need Help? Ask it here!
« Reply #46 on: February 01, 2012, 07:57:48 PM »
srry for double post, but this has to do with it, according to the server logs:

[19:40:19] I couldn't load any gamemode scripts. Please verify your server.cfg[19:40:19] It needs a gamemode0 line at the very least.

So, I've set 'Test' as gamemode, since that's how i named my blanc test script. But duo to compiling failure it won't be made into an AMX file, and thus won't be recognized s an gamemode?

I can't put my finger on the problem :/


To have .amx file, you must open the gamemode (in youre case test.pwn ) and press F5 or Compile Button. Then will appear a dialog message (and if you dont get any error, the .amx file was succesfully created). Sorry for my bad explination but i'm fucking tired  ;D. I hope this helped you. Also if you dont know something, you can visit the: http://wiki.sa-mp.com/

goodluck :)

Offline Bikerr

  • SA-MP Retirees
  • *
  • *****
  • Posts: 237
  • Get busy living, or get busy dying.
    • Awards
Re: Need Help? Ask it here!
« Reply #47 on: February 01, 2012, 08:02:47 PM »
hmm, cheering to early.

ok, so here's the deal

I can start samp-server.exe only if i got an premade gamemode set in server.CFG, like grandlarc.amx

When I put 'gamemode0 test 1' in the CFG file I can't start up the samp-server.exe, it closes immediatly.
This happens, I think, because the test.pawn, wich is the default script i've saved using pawno, isn't compiled yet.
However, when I hit compile, it auto-starts the server immediatly, eventhough I didn't clicked that option. (there are two options to compile; Compile and Compile and Run)

So, when everytime pawno autostarts the script, it won't get compiled, and I won't get the change to start the samp-server.exe first.

It's like an circle wich can't be broken, if u get me.

Btw, when I hit compile, let the server startup (wich cant connect), shut down the server, then I read in pawno; Unable to compile test.pawn.


It doesn't make any sence to me, and ye I'm a total scripting nub, but this doesn't seem to be right...

  Click signature to enlarge and admire!

Quote
"plzz notify me when entering dejo" -sebi.RADIO



Offline Bikerr

  • SA-MP Retirees
  • *
  • *****
  • Posts: 237
  • Get busy living, or get busy dying.
    • Awards
Re: Need Help? Ask it here!
« Reply #48 on: February 01, 2012, 08:08:29 PM »
Yea, I'm trying to do that Pawn, but when i press f5 it starts up the server... and the dialog is empty and it gives an error message saying; unable to compile test.pawn.

btw, in CFG file i do have to set gamemode to 'test' right? otherwise ill be loading another script right?

  Click signature to enlarge and admire!

Quote
"plzz notify me when entering dejo" -sebi.RADIO



Offline Habdel

  • SA-MP Server Admin
  • SA-MP Developer
  • *
  • *
  • Posts: 302
    • Awards
Re: Need Help? Ask it here!
« Reply #49 on: February 01, 2012, 08:11:12 PM »
Dont use test.pwn use a gamemode already made. Try to edit it, that how you learn.
anyway test.pwn has to be in gamemode folder soo the server can find it

Offline Bikerr

  • SA-MP Retirees
  • *
  • *****
  • Posts: 237
  • Get busy living, or get busy dying.
    • Awards
Re: Need Help? Ask it here!
« Reply #50 on: February 01, 2012, 08:15:06 PM »
Yea, u prob right Habdel, but it bother's me that I can't save and use own scripts...

btw, when I open an excisting script, must i open the .pawn to edit or the .amx?

my first thought is editing the pawn, then hit compile again, but not sure.

Thanks for all your help dudes :)

  Click signature to enlarge and admire!

Quote
"plzz notify me when entering dejo" -sebi.RADIO



Offline PawnFox

  • SA-MP
  • SA-MP Retirees
  • *
  • Posts: 1998
  • 187 Co.
    • Awards
Re: Need Help? Ask it here!
« Reply #51 on: February 01, 2012, 08:24:59 PM »
Yea, u prob right Habdel, but it bother's me that I can't save and use own scripts...

btw, when I open an excisting script, must i open the .pawn to edit or the .amx?

my first thought is editing the pawn, then hit compile again, but not sure.

Thanks for all your help dudes :)

Yeah, you must open the .pwn file ...

Yea, I'm trying to do that Pawn, but when i press f5 it starts up the server... and the dialog is empty and it gives an error message saying; unable to compile test.pawn.

btw, in CFG file i do have to set gamemode to 'test' right? otherwise ill be loading another script right?

Copy and paste here that error :D

Offline Bikerr

  • SA-MP Retirees
  • *
  • *****
  • Posts: 237
  • Get busy living, or get busy dying.
    • Awards
Re: Need Help? Ask it here!
« Reply #52 on: February 01, 2012, 08:31:19 PM »
I Can't copy it, it's on the left bottom corner of pawno. it say's 'unable to compile test.pawn' and the pop-up dialog is empty.

I'm gonna try to edit the lvdm gamemode, cuz that one starts up as it should, and it also compiles. But, it does auto-start everytime i hit compile tho

btw, anyone knows if LW's script is open for ppl to edit or something? prob not i guess :P

  Click signature to enlarge and admire!

Quote
"plzz notify me when entering dejo" -sebi.RADIO



Offline iMJets

  • SA-MP Donator
  • *
  • Posts: 2165
  • .::[UB]::. Clan Founder
    • [UnBreakables] Clan Forums
    • Awards
  • SA-MP: Jets[UB]
Re: Need Help? Ask it here!
« Reply #53 on: February 01, 2012, 09:26:10 PM »
btw, anyone knows if LW's script is open for ppl to edit or something? prob not i guess :P

if the files you receive are in .pwn they are editable.
if the file you receive are in .amx only they are not editable.

Offline Bikerr

  • SA-MP Retirees
  • *
  • *****
  • Posts: 237
  • Get busy living, or get busy dying.
    • Awards
Re: Need Help? Ask it here!
« Reply #54 on: February 07, 2012, 10:16:01 PM »
Hey guy's

So, my training server is comming along, got a problem though;

I've added an admin system FS called 0Admin, by Zh3r0.

Installed it the right way..

Only, when the server is starting up, after "connecting to server" it restarts and then it can't connect.

I think it could be 2 things,

-my main script OnPlayerConnect/OnPlayerSpawn and such are in conflict with the ones in the filterscript

-the filterscript is outdated and full of bugs... wich is prob the case since Zh3r0 stopped scripting, thus won't release new versions.

Anyway, both my MS and FS compile without errors, so... Does anyone have an idea of what I should check?

Last lines of Server_Log:

[23:07:14] Incoming connection: 192.168.1.70:4650
[23:07:14] [join] [JOKER]Bikerr has joined the server (0:192.168.1.70)


Greetz and thanks in advance;
Bikerr :)

  Click signature to enlarge and admire!

Quote
"plzz notify me when entering dejo" -sebi.RADIO



Offline Matz

  • Big Fish
  • ****
  • Posts: 302
    • Awards
Re: Need Help? Ask it here!
« Reply #55 on: February 13, 2012, 11:43:49 AM »
Guys, Are these correct? I made these but they aren't working;
Code: [Select]
public update()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
        //Ping Label
        new str[256]; format(str, sizeof(str), "%d", GetPlayerPing(i));
new Text3D:label = Create3DTextLabel(str, COLOR_ORANGE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.7);
}
return 1;
}
« Last Edit: February 26, 2012, 10:25:40 PM by Matz »

Offline Carolicious

  • SA-MP Retirees
  • *
  • Posts: 427
    • Awards
Re: Need Help? Ask it here!
« Reply #56 on: March 02, 2012, 01:46:57 PM »
I know this is rather old, and im sure you found a solution already, but for the records:


Guys, Are these correct? I made these but they aren't working;
Code: [Select]
public update()
{
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
        //Ping Label
        new str[256]; format(str, sizeof(str), "%d", GetPlayerPing(i));
   new Text3D:label = Create3DTextLabel(str, COLOR_ORANGE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.7);
   }
   return 1;
}


Everytime you run this code, it'll create a new label
but you should update the old one with new text instead.


I suggest you to have a look into this:
http://wiki.sa-mp.com/wiki/UpdatePlayer3DTextLabelText


On a sidenote:
That would mean you would have to create the label at one point (lets say when the player connects), and store its ID somewhere (in an array),
then make the update function update the label text, instead of creating a new one.
and ofcourse , destroy it when the label isn't needed anymore.
« Last Edit: March 02, 2012, 02:04:57 PM by Carolicious »



Offline Source

  • SA-MP Donator
  • *
  • Posts: 25
  • Proud JOKER!
    • JOK3R CLAN
    • Awards
Re: Need Help? Ask it here!
« Reply #57 on: March 04, 2012, 05:14:22 PM »
^ Knowledge is sexy girl, wanna do it?  8)
« Last Edit: March 04, 2012, 05:16:42 PM by Slash »
"Fear...? I have no fear..."

Offline Matz

  • Big Fish
  • ****
  • Posts: 302
    • Awards
Re: Need Help? Ask it here!
« Reply #58 on: March 22, 2012, 08:06:41 AM »
I know this is rather old, and im sure you found a solution already, but for the records:


Guys, Are these correct? I made these but they aren't working;
Code: [Select]
public update()
{
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
        //Ping Label
        new str[256]; format(str, sizeof(str), "%d", GetPlayerPing(i));
   new Text3D:label = Create3DTextLabel(str, COLOR_ORANGE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.7);
   }
   return 1;
}


Everytime you run this code, it'll create a new label
but you should update the old one with new text instead.


I suggest you to have a look into this:
http://wiki.sa-mp.com/wiki/UpdatePlayer3DTextLabelText



On a sidenote:
That would mean you would have to create the label at one point (lets say when the player connects), and store its ID somewhere (in an array),
then make the update function update the label text, instead of creating a new one.
and ofcourse , destroy it when the label isn't needed anymore.

I reply late but solved thanks.

Offline Habdel

  • SA-MP Server Admin
  • SA-MP Developer
  • *
  • *
  • Posts: 302
    • Awards
Re: Need Help? Ask it here!
« Reply #59 on: December 02, 2012, 01:11:33 PM »
Hello, i need some help about my derby "minigame"
soo i created 18 pickups, each time a player pickup one of those pickups, a car is created and he is thrown into it. Now i ve set a timer of 5 mins to prevent player from moving when they picked up a pickup and also to destroy the pickups to avoid others players to join after the round started. But when the timer ends, only the player that started the derby is unfrozen, all the others are still frozen but they still got the message "The Derby has started".
"TogglePlayerControllable(playerid, 1);" Doesn't work for all players
Code: [Select]
public MaxJoinTime(playerid)
{
SendClientMessageToAll(COLOR_RED, "The Derby Event has started.");

if(GetPlayerInterior(playerid) == 15)
{
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid,"~r~THE DERBY HAS STARTED!", 5000, 5);
PlayerPlaySound(playerid, 5201, 0.0, 0.0, 10.0);

//Destroying Pickups to avoid players to join after the timer finished.
DestroyPickup(V1);
DestroyPickup(V2);
DestroyPickup(V3);
DestroyPickup(V4);
DestroyPickup(V5);
DestroyPickup(V6);
DestroyPickup(V7);
DestroyPickup(V8);
DestroyPickup(V9);
DestroyPickup(V10);
DestroyPickup(V11);
DestroyPickup(V12);
DestroyPickup(V13);
DestroyPickup(V14);
DestroyPickup(V15);
DestroyPickup(V16);
DestroyPickup(V17);
DestroyPickup(V18);
}
return 1;
}

//The first pickup, the other are all the same
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == V1)
    {
    new vehicle1 = AddStaticVehicle(504,-1276.6234,1001.8982,1037.0726,95.9995,186,186); //
    LinkVehicleToInterior(vehicle1, 15);
    SetPlayerInterior(playerid, 15);
PutPlayerInVehicle(playerid, vehicle1, 0);
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid, "~g~PLEASE WAIT FOR OTHER PLAYERS", 5000, 5);
DestroyPickup(V1);
SendClientMessage(playerid,COLOR_RED, "Please wait for other players");
    ResetPlayerWeapons(playerid);
}
I did forwarded the MaxJoinTime & it is started when a player does a cmd
with SetTimerEx(#MaxJoinTime, 300000, false, #i, playerid);//5 Mins

I hope you guys can help me