Gabik 1 Odesláno: 14. Únor, 2009 Share Odesláno: 14. Únor, 2009 Robim si menu na warpy mam to zos menu creator a ked dam do onplayerselectedmenu row tak mam dva warningy a neviem co znimi C:\DOCUME~1\SK!LLL~1\Plocha\NSKMOD~1.pwn(850) : warning 219: local variable "warps" shadows a variable at a preceding level C:\DOCUME~1\SK!LLL~1\Plocha\NSKMOD~1.pwn(878) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings. Riadky public OnPlayerSelectedMenuRow(playerid, row) { { new Menu:warps = GetPlayerMenu(playerid); if(current == warps) { switch(row) { case 0: { SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do LV."); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerPos(playerid,2033.9434,1343.4656,10.8203); } case 1: { SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na Baseball."); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerPos(playerid,1384.0674,2185.7976,11.023); } case 2: { } } } return 1; } { prosim pomozte Link to comment Share on other sites More sharing options...
0 Gabik 1 Odesláno: 14. Únor, 2009 Author Share Odesláno: 14. Únor, 2009 Neviete niekto co stym? Link to comment Share on other sites More sharing options...
0 Daw3 0 Odesláno: 14. Únor, 2009 Share Odesláno: 14. Únor, 2009 Nepiš double post a pošli řádek 850 a 878 Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 14. Únor, 2009 Share Odesláno: 14. Únor, 2009 Robim si menu na warpy mam to zos menu creator a ked dam do onplayerselectedmenu row tak mam dva warningy a neviem co znimi C:\DOCUME~1\SK!LLL~1\Plocha\NSKMOD~1.pwn(850) : warning 219: local variable "warps" shadows a variable at a preceding level C:\DOCUME~1\SK!LLL~1\Plocha\NSKMOD~1.pwn(878) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings. Riadky public OnPlayerSelectedMenuRow(playerid, row) { { new Menu:warps = GetPlayerMenu(playerid); if(current == warps) { switch(row) { case 0: { SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do LV."); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerPos(playerid,2033.9434,1343.4656,10.8203); } case 1: { SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na Baseball."); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerPos(playerid,1384.0674,2185.7976,11.023); } case 2: { } } } return 1; } { prosim pomozte "warps" uz mas pouzite asi a case 2: {} mas zbytecne kdyz tam nic nemas new Menu:warps ?? snad new Menu : current omg new Menu:warps; public OnPlayerSelectedMenuRow(playerid, row) { new Menu:current = GetPlayerMenu(playerid); if(current == warps) { switch(row) { case 0: { SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do LV."); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerPos(playerid,2033.9434,1343.4656,10.8203); } case 1: { SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na Baseball."); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerPos(playerid,1384.0674,2185.7976,11.023); } } } return 1; } Link to comment Share on other sites More sharing options...
0 Gabik 1 Odesláno: 15. Únor, 2009 Author Share Odesláno: 15. Únor, 2009 ok uz mi to ide dik frenklin len ked dam /warps a vyberem kde cem port tak spadne mod co styM? Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 15. Únor, 2009 Share Odesláno: 15. Únor, 2009 OnPlayerSelectedMenu..doplnit dalsi chybi do pawna ti nevidim. Link to comment Share on other sites More sharing options...
0 Gabik 1 Odesláno: 15. Únor, 2009 Author Share Odesláno: 15. Únor, 2009 hmm co doplnit mam to takto neviem preco mi to pada public OnPlayerSelectedMenuRow(playerid, row) { { current = GetPlayerMenu(playerid); if(current == warps) { switch(row) { case 0: { SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do LV."); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0) SetPlayerPos(playerid,2033.9434,1343.4656,10.8203); } case 1: { SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na Baseball.") SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerPos(playerid,1384.0674,2185.7976,11.0234); } } } } current = GetPlayerMenu(playerid); if(current == menu) { switch(row) { case 0:{ //Row 1 code GivePlayerWeapon(playerid,26,99999); } case 1:{ //Row 2 code GivePlayerWeapon(playerid,28,99999); } case 2:{ //Row 3 code GivePlayerWeapon(playerid,31,99999); } case 3:{ //Row 4 code GivePlayerWeapon(playerid,24,99999); } case 4:{ //Row 5 code SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); } } } return 1; } Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 15. Únor, 2009 Share Odesláno: 15. Únor, 2009 mas tam SetPlayerHealth(playerid, 100.0) a chyba ti ankonci ; musis to mat taktoSetPlayerHealth(playerid, 100.0); Link to comment Share on other sites More sharing options...
0 Gabik 1 Odesláno: 15. Únor, 2009 Author Share Odesláno: 15. Únor, 2009 Upravil som to ale ijtak to pada Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 15. Únor, 2009 Share Odesláno: 15. Únor, 2009 posli mi pwn cez SZ skusim oprawit Link to comment Share on other sites More sharing options...
0 -other-Mizi_CZ 0 Odesláno: 15. Únor, 2009 Share Odesláno: 15. Únor, 2009 nikdo si nevšiml že má u OnPlayerSelectedMenuRow 2x pod sebou { ? jedno dstran ale pak odstran i jedno } na konci Link to comment Share on other sites More sharing options...
0 Gabik 1 Odesláno: 15. Únor, 2009 Author Share Odesláno: 15. Únor, 2009 no ja uz nevim upravil som to uz kopukrat zadny errory nic ale dam /warps vyberem port pockam kus a spadne mod no ja uz fakt nevim co stym Link to comment Share on other sites More sharing options...
Dotaz
Gabik 1
Robim si menu na warpy mam to zos menu creator a ked dam do onplayerselectedmenu row tak mam dva warningy a neviem co znimi
C:\DOCUME~1\SK!LLL~1\Plocha\NSKMOD~1.pwn(850) : warning 219: local variable "warps" shadows a variable at a preceding level
C:\DOCUME~1\SK!LLL~1\Plocha\NSKMOD~1.pwn(878) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Riadky
public OnPlayerSelectedMenuRow(playerid, row)
{
{ new Menu:warps = GetPlayerMenu(playerid);
if(current == warps)
{
switch(row)
{
case 0:
{
SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol do LV.");
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid,2033.9434,1343.4656,10.8203);
}
case 1:
{
SendClientMessageToAll(COLOR_BLUE,"Hráč %s sa portol na Baseball.");
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid,1384.0674,2185.7976,11.023);
}
case 2:
{
}
}
}
return 1;
}
{
prosim pomozte
Link to comment
Share on other sites
11 odpovědí na tuto otázku
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now