Please help! -
Alphos - 05.09.2010
Tried to use a script which creates a command to move a carrier elevator up and down. Why is it giving errors?
Re: What am I doing wrong? -
Alphos - 05.09.2010
Maybe those names are wrong...
Re: What am I doing wrong? -
Hiddos - 05.09.2010
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.
Re: What am I doing wrong? -
Alphos - 05.09.2010
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?
Re: What am I doing wrong? -
DevilG - 05.09.2010
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.)
Re: What am I doing wrong? -
Alphos - 05.09.2010
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? :<
Re: What am I doing wrong? -
Hiddos - 05.09.2010
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;
}
Re: What am I doing wrong? -
Alphos - 05.09.2010
What am I doing wrong here?
Re: What am I doing wrong? -
Alphos - 05.09.2010
Could somebody please help? =<
Re: What am I doing wrong? -
Burridge - 05.09.2010
I THINK that error means you've missed a ';'
Show us lines 1236 through to 1242