- 0
eroare script fast-event
-
Similar Content
-
- 0 replies
- 138 views
-
- 0 replies
- 225 views
-
- 3 replies
- 577 views
-
- 1 reply
- 442 views
-
- 1 reply
- 312 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Dynamic
imi da eroare la compilare dupa ce am adaugat scriptul fast-event in gm
Errori:
Fsu:
[pawn]#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] = "",
ReactionTime,
xCash,
xScore,
bool: xTestBusy
;
main()
{
}
public OnFilterScriptInit()
{
ReactionTime = SetTimer("ReactionTest", TIME, 1);
return 1;
}// aici 1 eroare la linia 13456
public OnFilterScriptExit()
{
KillTimer(ReactionTime);
return 1;
}
public OnPlayerText(playerid, text[])
{
switch(xTestBusy)// aici a 2 a eroare la linia [58526]
{
case true:
{
if(!strcmp(xChars, text, false))
{
new
string[128],
pName[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "-= \%s\" a castigat testul de reactie. -=", pName);
SendClientMessageToAll(GREEN, string);
format(string, sizeof(string), "-= Ai incasat $%d + %d score. -=", xCash, xScore);
SendClientMessage(playerid, GREEN, string);
GivePlayerMoney(playerid, xCash);
SetPlayerScore(playerid, GetPlayerScore(playerid) + xScore);
ReactionTime = SetTimer("ReactionTest", TIME, 1);
xTestBusy = false;
}
}
}
return 1;
}
function xReactionProgress() // aici eroarea 3,4,5 la linia [58544]
{
switch(xTestBusy)
{
case true:
{
new
string[128]
;
format(string, sizeof(string), "{6EF83C}-= {FFFFFF}Nimeni nu a castigat testul de reactie. Va reincepe altul in %d minutes. {6EF83C}-=", (TIME/60000));
SendClientMessageToAll(PURPLE, string);
ReactionTime = SetTimer("ReactionTest", TIME, 1);
}
}
return 1;
}
function ReactionTest()
{
new
xLength = (random(8) + 2),
string[128]
;
xCash = (random(10000) + 20000);
xScore = (random(2)+1);
format(xChars, sizeof(xChars), "");
Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]);
format(string, sizeof(string), "{6EF83C}-= {FFFFFF}Cine scrie primul %s va castiga $%d + %d si score points. {6EF83C}-=", xChars, xCash, xScore);
SendClientMessageToAll(PURPLE, string);
KillTimer(ReactionTime);
xTestBusy = true;
SetTimer("xReactionProgress", 30000, 0);
return 1;
}[/pawn]
<a href="http://www.game-state.com/94.177.106.162:7777/"><img src="http://www.game-state.com/94.177.106.162:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>
Link to comment
Share on other sites
8 answers to this question
Recommended Posts