Jump to content
  • 0

Question

Posted

salut imi puteti face si mie pwn la acest fs ca eu nu reusesc sa scot "score" din el sa nu iti dea score!

http://pastebin.com/5f0pjpWB

Daca se poate sa se activeze la 5 minute!:D

7 answers to this question

Recommended Posts

Posted

Na poftim:

[pawn]

/*

        Release:

                » Reaction-Test Filterscript

        Author:

                » » RyDeR «

        Last Update:

                » 25/05/2010

        ChangeLog:

                » v0.1a:

                                - Initial release

        Bugs:

                » No bugs

        Version:

                        » v0.1a

        Functions:

                        » /

        Credits:

                » /

*/

#include <a_samp>

#if !defined Loop

#define Loop(%0,%1) \

        for(new %0 = 0; %0 != %1; %0++)

#endif

#if !defined function

#define function%0(%1) \

        forward%0(%1); public%0(%1)

#endif

#if !defined PURPLE

#define PURPLE \

    0xBF60FFFF

#endif

#if !defined GREEN

#define GREEN \

    0x94D317FF

#endif

#if !defined TIME

#define TIME \

    180000

#endif

new

        xCharacters[][] =

        {

            "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",

                "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",

            "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m",

                "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",

            "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"

        },

        xChars[16] = "",

        xReactionTimer,

        xCash,

        bool: xTestBusy

;

public OnFilterScriptInit()

{

        xReactionTimer = SetTimer("xReactionTest", TIME, 1);

        return 1;

}

public OnFilterScriptExit()

{

        KillTimer(xReactionTimer);

        return 1;

}

public OnPlayerText(playerid, text[])

{

        switch(xTestBusy)

        {

            case true:

            {

                        if(!strcmp(xChars, text, false))

                        {

                            new

                                string[128],

                                pName[MAX_PLAYER_NAME]

                                ;

                                GetPlayerName(playerid, pName, sizeof(pName));

                                format(string, sizeof(string), "« \%s\" has won the reaction test. »", pName);

                            SendClientMessageToAll(GREEN, string);

                            format(string, sizeof(string), "« You have earned $%d »", xCash);

                            SendClientMessage(playerid, GREEN, string);

                            GivePlayerMoney(playerid, xCash);

                                xReactionTimer = SetTimer("xReactionTest", TIME, 1);

                            xTestBusy = false;

                        }

                }

        }

        return 1;

}

function xReactionProgress()

{

  switch(xTestBusy)

        {

            case true:

            {

                    new

                        string[128]

                        ;

                        format(string, sizeof(string), "« No-one won the reaction-test. New one starting in %d minutes. »", (TIME/60000));

                    SendClientMessageToAll(PURPLE, string);

                xReactionTimer = SetTimer("xReactionTest", TIME, 1);

      }

        }

        return 1;

}

function xReactionTest()

{

        new

                xLength = (random(8) + 2),

                string[128]

        ;

        xCash = (random(10000) + 20000);

        format(xChars, sizeof(xChars), "");

        Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]);

        format(string, sizeof(string), "« Who first types %s wins $%d »", xChars, xCash);

        SendClientMessageToAll(PURPLE, string);

        KillTimer(xReactionTimer);

        xTestBusy = true;

        SetTimer("xReactionProgress", 30000, 0);

        return 1;

}

[/pawn]

Posted

Multumesc dar uite:d

[pawn]fastevent.pwn(30) : error 001: expected token: ";", but found "&"

fastevent.pwn(42) : error 010: invalid function or declaration

fastevent.pwn(46) : error 017: undefined symbol "xReactionTimer"

fastevent.pwn(52) : error 017: undefined symbol "xReactionTimer"

fastevent.pwn(56) : error 025: function heading differs from prototype

fastevent.pwn(56) : error 029: invalid expression, assumed zero

fastevent.pwn(58) : error 010: invalid function or declaration

fastevent.pwn(60) : error 010: invalid function or declaration

fastevent.pwn(62) : error 010: invalid function or declaration

fastevent.pwn(68) : error 021: symbol already defined: "GetPlayerName"

fastevent.pwn(79) : error 010: invalid function or declaration

fastevent.pwn(84) : error 017: undefined symbol "xTestBusy"

fastevent.pwn(89) : warning 219: local variable "string" shadows a variable at a preceding level

fastevent.pwn(91) : warning 217: loose indentation

fastevent.pwn(92) : warning 217: loose indentation

fastevent.pwn(93) : warning 217: loose indentation

fastevent.pwn(93) : error 017: undefined symbol "xReactionTimer"

fastevent.pwn(96) : warning 217: loose indentation

fastevent.pwn(103) : warning 219: local variable "string" shadows a variable at a preceding level

fastevent.pwn(105) : error 017: undefined symbol "xCash"

fastevent.pwn(105) : warning 215: expression has no effect

fastevent.pwn(106) : error 017: undefined symbol "xChars"

fastevent.pwn(106) : error 017: undefined symbol "xChars"

fastevent.pwn(106) : error 029: invalid expression, assumed zero

fastevent.pwn(106) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

18 Errors.[/pawn]

Posted

Aolo mama.

Stai, verifica din cand in cand postul asta, revin cu edit.

EDIT:

[pawn]

/*

Release:

    » Reaction-Test Filterscript

Author:

        » » RyDeR «

Last Update:

        » 25/05/2010

ChangeLog:

        » v0.1a:

- Initial release

Bugs:

        » No bugs

Version:

» v0.1a

Functions:

» /

Credits:

        » /

*/

#include <a_samp>

#if !defined Loop

#define Loop(%0,%1) \

for(new %0 = 0; %0 != %1; %0++)

#endif

#if !defined function

#define function%0(%1) \

forward%0(%1); public%0(%1)

#endif

#if !defined PURPLE

#define PURPLE \

    0xBF60FFFF

#endif

#if !defined GREEN

#define GREEN \

    0x94D317FF

#endif

#if !defined TIME

#define TIME \

    180000

#endif

new

xCharacters[][] =

{

    "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",

"N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",

    "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m",

"n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",

    "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"

},

xChars[16] = "",

xReactionTimer,

xCash,

bool: xTestBusy

;

public OnFilterScriptInit()

{

xReactionTimer = SetTimer("xReactionTest", TIME, 1);

return 1;

}

public OnFilterScriptExit()

{

KillTimer(xReactionTimer);

return 1;

}

public OnPlayerText(playerid, text[])

{

switch(xTestBusy)

{

    case true:

    {

if(!strcmp(xChars, text, false))

{

    new

        string[128],

        pName[MAX_PLAYER_NAME]

;

GetPlayerName(playerid, pName, sizeof(pName));

format(string, sizeof(string), "« \%s\" has won the reaction test. »", pName);

    SendClientMessageToAll(GREEN, string);

    format(string, sizeof(string), "« You have earned $%d »", xCash);

    SendClientMessage(playerid, GREEN, string);

    GivePlayerMoney(playerid, xCash);

xReactionTimer = SetTimer("xReactionTest", TIME, 1);

    xTestBusy = false;

}

}

}

return 1;

}

function xReactionProgress()

{

    switch(xTestBusy)

{

    case true:

    {

    new

        string[128]

;

format(string, sizeof(string), "« No-one won the reaction-test. New one starting in %d minutes. »", (TIME/60000));

    SendClientMessageToAll(PURPLE, string);

        xReactionTimer = SetTimer("xReactionTest", TIME, 1);

        }

}

return 1;

}

function xReactionTest()

{

new

xLength = (random(8) + 2),

string[128]

;

xCash = (random(10000) + 20000);

format(xChars, sizeof(xChars), "");

Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]);

format(string, sizeof(string), "« Who first types %s wins $%d»", xChars, xCash);

SendClientMessageToAll(PURPLE, string);

KillTimer(xReactionTimer);

xTestBusy = true;

SetTimer("xReactionProgress", 30000, 0);

return 1;

}

[/pawn]

De data asta nu are cum sa nu iti mearga, mie mi se compileaza perfect.

Posted

Rock incearca sal pui pe pastebin, deoare pe forum se adauga mai multe &

A, da.

Click

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.