Need help again!
#1

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.
Reply
#2

Show me these lines please?
Reply
#3

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)}
Reply
#4

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.
Reply
#5

show me lines 1-60
Reply
#6

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;
    }
Reply
#7

Take that 'print()' out from top of your code for a start.
Reply
#8

LMAO damn i had pressed it on the right mistakly Wow! Thanks
Reply
#9

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
Reply
#10

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)