What am I doing wrong?
#1

Tried to use a script which creates a command to move a carrier elevator up and down. Why is it giving errors?


Reply
#2

Maybe those names are wrong...
Reply
#3

Place "#include <a_samp>" ONLY ONCE in your script, at the top.

Also, you're having a second "OnGameModeInit", you can only have each callback, functions & that crap ONCE in your script. Merge those callbacks.
Reply
#4

I can't figure it out for some reason. Or the compiler crashes, or it gives shitloads of other errors I don't understand. Could anybody show me where I need to place those lines?
Reply
#5

put the #include <a_samp> on top of your script.

then check if you have 2 OnGameModeInIt and remove one of them (merge one to another.)
Reply
#6

Quote:
Originally Posted by DevilG
Посмотреть сообщение
put the #include <a_samp> on top of your script.

then check if you have 2 OnGameModeInIt and remove one of them (merge one to another.)
I did, but it still gives errors. Can't you show it to me with a screenshot or something? :<
Reply
#7

Merge your functions, you didn't read my post correctly.

Your code is something like this.

pawn Код:
public OnGameModeInit()
{
  printf("Game Mode Init");
  return 1;
}

public OnGameModeInit()
{
  AddPlayerClass(176, 235, 2546, 2354, 10, 1, 0, 0, 0, 0);
  return 1;
}
There you've got OnGameModeInit TWICE in your GM. Merge them:

pawn Код:
public OnGameModeInit()
{
  print("Game Mode Init");
  AddPlayerClass(176, 235, 2546, 2354, 10, 1, 0, 0, 0, 0);
  return 1;
}
Reply
#8

What am I doing wrong here?

Reply
#9

Could somebody please help? =<
Reply
#10

I THINK that error means you've missed a ';'

Show us lines 1236 through to 1242
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)