Skripta koju koristim: DM Mod od 0 koji sam nedavno poceo praviti
Detaljan opis problema: Kako da ubacim ono "Ko prvi ukuca to i to dobija 1 scor i $2564 ".
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
[POMOC] Kako da ubacim ovo?
1,026
pregleda
7
postova
15. Feb. 2011.
Pa pod public OnPlayerText(playerid, text[])
Dodaj ovo
{
switch(xTestBusy)
{
case true:
{
if(!strcmp(xChars, text, false))
{
new pName,string;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "« \%s\" je pobedio u testu. »", pName);
SendClientMessageToAll(GREEN, string);
format(string, sizeof(string), "« Zaradili ste $%d + %d poeni. »", xCash, xScore);
SendClientMessage(playerid, GREEN, string);
GivePlayerMoney(playerid, xCash);
SetPlayerScore(playerid, GetPlayerScore(playerid) + xScore);
xReactionTimer = SetTimer("xReactionTest", TIME, 1);
xTestBusy = false;
}
}
}
return 1;
}
function xReactionProgress()
{
switch(xTestBusy)
{
case true:
{
new string;
format(string, sizeof(string), "", (TIME/60000));
xReactionTimer = SetTimer("xReactionTest", TIME, 1);
}
}
return 1;
}
function xReactionTest()
{
new
xLength = (random(😎 + 2),
string
;
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))]);
format(string, sizeof(string), "«Ko prvi napise %s osvaja $%d + %d poena. »", xChars, xCash, xScore);
SendClientMessageToAll(PURPLE, string);
KillTimer(xReactionTimer);
xTestBusy = true;
SetTimer("xReactionProgress", 30000, 0);
return 1;
}
Ali ne znam Å¡ta treba definisati taÄno :S
Dodaj ovo
{
switch(xTestBusy)
{
case true:
{
if(!strcmp(xChars, text, false))
{
new pName,string;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "« \%s\" je pobedio u testu. »", pName);
SendClientMessageToAll(GREEN, string);
format(string, sizeof(string), "« Zaradili ste $%d + %d poeni. »", xCash, xScore);
SendClientMessage(playerid, GREEN, string);
GivePlayerMoney(playerid, xCash);
SetPlayerScore(playerid, GetPlayerScore(playerid) + xScore);
xReactionTimer = SetTimer("xReactionTest", TIME, 1);
xTestBusy = false;
}
}
}
return 1;
}
function xReactionProgress()
{
switch(xTestBusy)
{
case true:
{
new string;
format(string, sizeof(string), "", (TIME/60000));
xReactionTimer = SetTimer("xReactionTest", TIME, 1);
}
}
return 1;
}
function xReactionTest()
{
new
xLength = (random(😎 + 2),
string
;
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))]);
format(string, sizeof(string), "«Ko prvi napise %s osvaja $%d + %d poena. »", xChars, xCash, xScore);
SendClientMessageToAll(PURPLE, string);
KillTimer(xReactionTimer);
xTestBusy = true;
SetTimer("xReactionProgress", 30000, 0);
return 1;
}
Ali ne znam Å¡ta treba definisati taÄno :S
15. Feb. 2011.
sad mi ove errore izbaci:
a linija 161 switch(xTestBusy)
D:\miso\gta san andreas\GTA San Andreas\samp\gamemodes\gangwars.pwn(161) : error 029: invalid expression, assumed zero
D:\miso\gta san andreas\GTA San Andreas\samp\gamemodes\gangwars.pwn(161) : error 029: invalid expression, assumed zero
D:\miso\gta san andreas\GTA San Andreas\samp\gamemodes\gangwars.pwn(161) : error 029: invalid expression, assumed zero
D:\miso\gta san andreas\GTA San Andreas\samp\gamemodes\gangwars.pwn(161) : fatal error 107: too many error messages on one linea linija 161 switch(xTestBusy)
15. Feb. 2011.
_tHe_WoLf_ wrote on February 15, 2011, 8:50 am:
sad mi ove errore izbaci:
D:\miso\gta san andreas\GTA San Andreas\samp\gamemodes\gangwars.pwn(161) : error 029: invalid expression, assumed zero
D:\miso\gta san andreas\GTA San Andreas\samp\gamemodes\gangwars.pwn(161) : error 029: invalid expression, assumed zero
D:\miso\gta san andreas\GTA San Andreas\samp\gamemodes\gangwars.pwn(161) : error 029: invalid expression, assumed zero
D:\miso\gta san andreas\GTA San Andreas\samp\gamemodes\gangwars.pwn(161) : fatal error 107: too many error messages on one line;P
Pa daj tu liniju
A kradeš sa Siemensa a? xD
15. Feb. 2011.
http://forum.sa-mp.com/showthread.php?t=150274&highlight=Speed+Test
Pogledaj malo to 🙂
EDIT: Ovo ima siemens 🙂
EDIT: I molim te neslusaj gonss-a 😎
Pogledaj malo to 🙂
EDIT: Ovo ima siemens 🙂
EDIT: I molim te neslusaj gonss-a 😎
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava