Jump to content
  • 0

pomoc Errory u Inter. Kavarny :(


SparcoCZ

Dotaz

Prosim vas mam takovi problem pustil sem se do Internetovi Kavarny a haze mi to u tohoto radku: Menu[intKavarna] = CreateMenu("~g~I~w~nternet", 1, 150.0, 140.0, 230.0, 220.0);

 

C:\Documents and Settings\martin\Plocha\newmod2.pwn(527) : error 017: undefined symbol "Menu"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(527) : warning 215: expression has no effect

C:\Documents and Settings\martin\Plocha\newmod2.pwn(527) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(527) : error 029: invalid expression, assumed zero

C:\Documents and Settings\martin\Plocha\newmod2.pwn(527) : fatal error 107: too many error messages on one line

Prosim poradte :(

Link to comment
Share on other sites

13 odpovědí na tuto otázku

Recommended Posts

  • 0

Kdyz ti skoci takhle 5 eroru za sebou znamena to dve veci, neco nemas definovanyho ale mas to tam, nebo ti nekde chyby ; a celej script se ti jakoby znicil... takze hledej :)

Link to comment
Share on other sites

  • 0

 

new Menu:IntKavarna;

 

CreatePickup(1314,1, 355.7153,169.3838,1008.3776); // KAVARNA

CreatePickup(1314,1, 355.4682,177.8464,1008.3782); // KAVARNA

 

//------Kavarna-------------|

IntKavarna = CreateMenu("Internet", 1, 150.0, 140.0, 230.0, 220.0);

if(IsValidMenu(Menu[intKavarna]))

{

AddMenuItem(Menu[intKavarna], 0, "www.Crazy.town");

AddMenuItem(Menu[intKavarna], 0, "www.Hacker.org");

AddMenuItem(Menu[intKavarna], 0, "www.CTPrace.cz");

}

 

else if(Aktualni == Menu[intKavarna])

{

switch(row)

{

case 0:

{

GivePlayerMoney(playerid, -5);

SendClientMessage(playerid, 0x7FFF00AA, " [ http://www.Crazy.town" onclick="window.open(this.href);return false; ]");

SendClientMessage(playerid, B_BILA, "Mesto zacalo vznikat 19.02. roku 2010, jeho puvodnimi architekty jsou SparcoCZ Kappa a Taziicek");

SendClientMessage(playerid, B_BILA, "Nadale se rozrustalo, a stavalo se vice a vice popularnejsim. Novi osadnici a pracovni prilezitosti.");

SendClientMessage(playerid, B_BILA, "Nyni nase mesto dale vzkveta a tesi se velike popularite u obcanu.");

}

case 1:

{

if(GetPlayerMoney(playerid) < 7000) SendClientMessage(playerid, B_CERV, "[ ! ] Tato stranka je placena, potrebujes 7000$.");

else

{

SendClientMessage(playerid, B_CERV, " [ http://www.Hacker.org" onclick="window.open(this.href);return false; ]");

GivePlayerMoney(playerid, -7000);

 

new hack = random(70),vydelek = random(1000000),string[256];

switch(hack)

{

case 0:

{

format(string, sizeof(string), "[Aktualne.cz] Neznamy hacker se naboural do bankovnich uctu, napachane skody: %d$.",vydelek);

GivePlayerMoney(playerid, vydelek);

SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);

SendClientMessageToAll(B_SVIT, string);

}

case 3:

{

format(string, sizeof(string), "[Aktualne.cz] %s se naboural do bankovnich uctu, napachane skody: %d$, policie po nem patra.",Jmeno(playerid),vydelek);

GivePlayerMoney(playerid, vydelek);

SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+5);

SendClientMessageToAll(B_SVIT, string);

}

case 8, 11, 20, 43, 52, 61, 65, 69:

{

format(string, sizeof(string), "[Aktualne.cz] %s se pokousel nabourat do bankovnich uctu, policie po nem patra.",Jmeno(playerid));

SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+5);

SendClientMessageToAll(B_SVIT, string);

}

default: SendClientMessage(playerid, B_BILA, "[ ! ] Bohuzel se ti nepovedlo proniknout do uctu prez silny firewall.");

}

}

}

case 2:

{

GivePlayerMoney(playerid, -5);

SendClientMessage(playerid, 0x7FFF00AA, " [ http://www.CPrace.cz" onclick="window.open(this.href);return false; ] - Pracovni mista");

SendClientMessage(playerid, B_BILA, "Policie,S.W.A.T,Hasic,Doktor,Armada,Odtahovka,Yakuza,");

SendClientMessage(playerid, B_BILA, "Popelar,Kamionysta,Taxikar,Bodyguard,Cosanostra,");

SendClientMessage(playerid, B_BILA, "Silnicar,Rozvazec Pizzy,Dealer,Novinar,Zmrzlinar,");

SendClientMessage(playerid, B_BILA, "Najemny vrah,Autobusar,Automechanik,Nezamestnani.");

}

default: HideMenuForPlayer(Menu[intKavarna], playerid);

}

}

 

 

-- ned 14. bře 2010 14:05:20 --

 

Prave ze to je skoda pac sem tam tu kavarnu chtel uz sem na to mel vse pripravene :)

Link to comment
Share on other sites

  • 0

TADY TO MÁŠ OPRAVENÝ, KDYBY TO NEŠLO, NAPIŠ

 

pod includy

new Menu:IntKavarna;

 

OnGameModeInit

CreatePickup(1314,1, 355.7153,169.3838,1008.3776); // KAVARNA
CreatePickup(1314,1, 355.4682,177.8464,1008.3782); // KAVARNA
IntKavarna = CreateMenu("Internet", 1, 150.0, 140.0, 230.0, 220.0);
AddMenuItem(IntKavarna, 0, "www.Crazy.town");
AddMenuItem(IntKavarna, 0, "www.Hacker.org");
AddMenuItem(IntKavarna, 0, "www.CTPrace.cz");

 

OnPlayerSelectedMenuRow

public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current = GetPlayerMenu(playerid);
if(current == IntKavarna)
{
switch(row)
{
case 0:
{
GivePlayerMoney(playerid, -5);
SendClientMessage(playerid, 0x7FFF00AA, " [ www.Crazy.town ]");
SendClientMessage(playerid, B_BILA, "Mesto zacalo vznikat 19.02. roku 2010, jeho puvodnimi architekty jsou SparcoCZ Kappa a Taziicek");
SendClientMessage(playerid, B_BILA, "Nadale se rozrustalo, a stavalo se vice a vice popularnejsim. Novi osadnici a pracovni prilezitosti.");
SendClientMessage(playerid, B_BILA, "Nyni nase mesto dale vzkveta a tesi se velike popularite u obcanu.");
}
case 1:
{
if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, B_CERV, "[ ! ] Tato stranka je placena, potrebujes 7000$.");
SendClientMessage(playerid, B_CERV, " [ www.Hacker.org ]");
GivePlayerMoney(playerid, -7000);
new hack = random(70),vydelek = random(1000000),string[256];
switch(hack)
{
case 0:
{
format(string, sizeof(string), "[Aktualne.cz] Neznamy hacker se naboural do bankovnich uctu, napachane skody: %d$.",vydelek);
GivePlayerMoney(playerid, vydelek);
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)++);
SendClientMessageToAll(B_SVIT, string);
}
case 1:
{
format(string, sizeof(string), "[Aktualne.cz] %s se naboural do bankovnich uctu, napachane skody: %d$, policie po nem patra.",Jmeno(playerid),vydelek);
GivePlayerMoney(playerid, vydelek);
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+=5);
SendClientMessageToAll(B_SVIT, string);
}
case 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69:
{
format(string, sizeof(string), "[Aktualne.cz] %s se pokousel nabourat do bankovnich uctu, policie po nem patra.",Jmeno(playerid));
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+=5);
SendClientMessageToAll(B_SVIT, string);
SendClientMessage(playerid, B_BILA, "[ ! ] Bohuzel se ti nepovedlo proniknout do uctu prez silny firewall.");
}
}
case 2:
{
GivePlayerMoney(playerid, -5);
SendClientMessage(playerid, 0x7FFF00AA, " [ www.CPrace.cz ] - Pracovni mista");
SendClientMessage(playerid, B_BILA, "Policie,S.W.A.T,Hasic,Doktor,Armada,Odtahovka,Yakuza,");
SendClientMessage(playerid, B_BILA, "Popelar,Kamionysta,Taxikar,Bodyguard,Cosanostra,");
SendClientMessage(playerid, B_BILA, "Silnicar,Rozvazec Pizzy,Dealer,Novinar,Zmrzlinar,");
SendClientMessage(playerid, B_BILA, "Najemny vrah,Autobusar,Automechanik,Nezamestnani.");
HideMenuForPlayer(IntKavarna,playerid);
}
}
}

Link to comment
Share on other sites

  • 0

tak to asi nevyslo :)

 

 

C:\Documents and Settings\martin\Plocha\newmod2.pwn(681) : error 017: undefined symbol "dcmd_afk"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(808) : error 017: undefined symbol "IsPlayerInSphere"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(814) : error 017: undefined symbol "IsPlayerInSphere"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(820) : error 017: undefined symbol "IsPlayerInSphere"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(885) : error 029: invalid expression, assumed zero

C:\Documents and Settings\martin\Plocha\newmod2.pwn(886) : error 001: expected token: ";", but found "{"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(902) : error 079: inconsistent return types (array & non-array)

C:\Documents and Settings\martin\Plocha\newmod2.pwn(905) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\martin\Plocha\newmod2.pwn(912) : error 022: must be lvalue (non-constant)

C:\Documents and Settings\martin\Plocha\newmod2.pwn(917) : error 017: undefined symbol "Jmeno"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(919) : error 022: must be lvalue (non-constant)

C:\Documents and Settings\martin\Plocha\newmod2.pwn(919) : warning 215: expression has no effect

C:\Documents and Settings\martin\Plocha\newmod2.pwn(919) : error 001: expected token: ";", but found ")"

C:\Documents and Settings\martin\Plocha\newmod2.pwn(919) : error 029: invalid expression, assumed zero

C:\Documents and Settings\martin\Plocha\newmod2.pwn(919) : fatal error 107: too many error messages on one line

 

 

To neni do maikeroo delam svuj mod a beru to z maikeroo :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...