Need help again! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help again! (
/showthread.php?tid=235886)
Need help again! -
Roomeo - 06.03.2011
pawn Код:
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\pawno\include\a_samp.inc(53) : error 025: function heading differs from prototype
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(57) : warning 202: number of arguments does not match definition
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(58) : warning 202: number of arguments does not match definition
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(59) : warning 202: number of arguments does not match definition
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(645) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: Need help again! -
maramizo - 06.03.2011
Show me these lines please?
Re: Need help again! -
Roomeo - 06.03.2011
pawn Код:
53)#else
54)
55)main()
56){
57) print("\n----------------------------------");
58) print(" Blank Gamemode by your name here");
59) print("----------------------------------\n");
60)}
pawn Код:
645)if(strcmp(cmdtext, "/teleports", true, 10) == 0)
646) {
647) SendClientMessage(playerid, 0xFF0000AA,":-:-:-:-:TelePorts:-:-:-:-:");
648) SendClientMessage(playerid, 0xFF0000AA,"/parkDM - More will be Added Soon");
649) return 1;
650)}
Re: Need help again! -
Roomeo - 06.03.2011
Now 645 problem is solved i need help in 53 54 55 56 57 58 59 60 what is the problem?
pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\pawno\include\a_samp.inc(53) : error 025: function heading differs from prototype
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(57) : warning 202: number of arguments does not match definition
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(58) : warning 202: number of arguments does not match definition
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(59) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: Need help again! -
omer5198 - 06.03.2011
show me lines 1-60
Re: Need help again! -
Roomeo - 06.03.2011
pawn Код:
print()// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new Text:Txt;
new HelpBot[][]=
{
"Add <IP Here> To your favourites!",
"Visit our forums at ...",
"Read the /rules before playing",
"If you're a newbie here, please read /help"
};
Txt = TextDrawCreate(2.000000, 429.000000, " ");
TextDrawAlignment(Txt, 0);
TextDrawBackgroundColor(Txt, 0xffffff33);
TextDrawFont(Txt, 1);
TextDrawLetterSize(Txt, 0.299999, 1.300000);
TextDrawColor(Txt, 0x0000ff99);
TextDrawSetOutline(Txt, 1);
TextDrawSetProportional(Txt, 1);
TextDrawSetShadow(Txt, 1);
forward Bot();
public Bot()
{
TextDrawSetString(Text:Txt, HelpBot[random(sizeof(HelpBot))]);
return 1;
}
SetTimer("Bot",20000,1); //The messages will randomly change every 20 seconds.
TextDrawShowForPlayer(playerid,Txt);
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Roomeo");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
the problem comes when i add
pawn Код:
{
if (strcmp("/casp", cmdtext, true, 5) == 0)
{
SetPlayerPos(playerid, 1565.6785,1183.3251,37.8896);
SetPlayerFacingAngle(playerid, 309.0133);
return 1;
}
Re: Need help again! -
Stigg - 06.03.2011
Take that 'print()' out from top of your code for a start.
Re: Need help again! -
Roomeo - 06.03.2011
LMAO damn i had pressed it on the right mistakly Wow! Thanks
Re: Need help again! -
Stigg - 06.03.2011
Quote:
Originally Posted by Roomeo
LMAO damn i had pressed it on the right mistakly Wow! Thanks
|
No prob's, glad i could help. See you soon...lolz
Re: Need help again! -
alpha500delta - 06.03.2011
Funny, your code won't work because you put everything under #if defined FILTERSCRIPT but you did not define FILTERSCRIPT xD
Also you forgot OnFilterScriptInit at the code...