KinGStoN 0 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 cawte potreboval by som pomôct s jednou vecou.... #define P_POLICIA new Zamestnanie[MAX_PLAYERS_EX]; new Menu:P_PoliciaLS; new Menu:P_PoliciaLV; new Menu:P_PoliciaSF; public OnPlayerSelectedMenuRow(playerid, row) { new Menu:Current = GetPlayerMenu(playerid); if(Current == P_PoliciaLS) { switch(row) { case 0: { Zamestnanie[playerid] = P_POLICIA; SetPlayerSkin(playerid, 280); SendClientMessage(playerid, FARBA_MODRA, "[ ! ] Pripojil si sa ku mestskej polícii LSPD."); SendClientMessage(playerid, FARBA_SVETLOMODRA, "Príkazy: /zat /hide /unhide /s /k /p"); } case 1: { HideMenuForPlayer(P_PoliciaLS, playerid); } } } if(Current == P_PoliciaLV) { switch(row) { case 0: { Zamestnanie[playerid] = P_POLICIA; SetPlayerSkin(playerid, 281); SendClientMessage(playerid, FARBA_MODRA, "[ ! ] Pripojil si sa ku mestskej polícii LVPD."); SendClientMessage(playerid, FARBA_SVETLOMODRA, "Prikazy: /jail /hide /unhide /s /k /p"); } case 1: { HideMenuForPlayer(P_PoliciaLV, playerid); } } } if(Current == P_PoliciaSF) { switch(row) { case 0: { Zamestnanie[playerid] = P_POLICIA; SetPlayerSkin(playerid, 282); SendClientMessage(playerid, FARBA_MODRA, "[ ! ] Pripojil si sa ku mestskej polícii SFPD."); SendClientMessage(playerid, FARBA_SVETLOMODRA, "Prikazy: /jail /hide /unhide /s /k /p"); } case 1: { HideMenuForPlayer(P_PoliciaSF, playerid); } } } return 1; } potom mi tam vyskocia bezdôvodne errory: C:\Documents and Settings\Rodina\Desktop\Grand Theft Auto San Andreas\gamemodes\realplanetb.pwn(937) : error 029: invalid expression, assumed zero C:\Documents and Settings\Rodina\Desktop\Grand Theft Auto San Andreas\gamemodes\realplanetb.pwn(1224) : error 029: invalid expression, assumed zero C:\Documents and Settings\Rodina\Desktop\Grand Theft Auto San Andreas\gamemodes\realplanetb.pwn(1241) : error 029: invalid expression, assumed zero C:\Documents and Settings\Rodina\Desktop\Grand Theft Auto San Andreas\gamemodes\realplanetb.pwn(1258) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Link to comment Share on other sites More sharing options...
0 rhsCZ 19 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 lepší by bylo kdyby si upřesnil řádky Link to comment Share on other sites More sharing options...
0 _Martin_ 10 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 Radšej by som to spravil cez dialogy, je to krajšie a jednoduchšie (podľa mňa) + rhs má pravdu bez riadkov ti nevyčarujeme pomoc Link to comment Share on other sites More sharing options...
0 paulie2907 12 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 Máš blbě závorky - otevíráš 4 zavíráš 3 spočítej si to a zkus to ještě jednou Link to comment Share on other sites More sharing options...
0 Hrb™ 48 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 A zkusil si dat místo: #define P_POLICIA Toto: new P_POLICIA; Link to comment Share on other sites More sharing options...
0 paulie2907 12 Odesláno: 28. Duben, 2012 Share Odesláno: 28. Duben, 2012 A zkusil si dat místo: #define P_POLICIA Toto: new P_POLICIA; Jo tak tohle jsem přehlédl Link to comment Share on other sites More sharing options...
0 KinGStoN 0 Odesláno: 29. Duben, 2012 Author Share Odesláno: 29. Duben, 2012 skusim diky Link to comment Share on other sites More sharing options...
Dotaz
KinGStoN 0
cawte potreboval by som pomôct s jednou vecou....
#define P_POLICIA
new Zamestnanie[MAX_PLAYERS_EX];
new Menu:P_PoliciaLS;
new Menu:P_PoliciaLV;
new Menu:P_PoliciaSF;
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:Current = GetPlayerMenu(playerid);
if(Current == P_PoliciaLS)
{
switch(row)
{
case 0:
{
Zamestnanie[playerid] = P_POLICIA;
SetPlayerSkin(playerid, 280);
SendClientMessage(playerid, FARBA_MODRA, "[ ! ] Pripojil si sa ku mestskej polícii LSPD.");
SendClientMessage(playerid, FARBA_SVETLOMODRA, "Príkazy: /zat /hide /unhide /s /k /p");
}
case 1:
{
HideMenuForPlayer(P_PoliciaLS, playerid);
}
}
}
if(Current == P_PoliciaLV)
{
switch(row)
{
case 0:
{
Zamestnanie[playerid] = P_POLICIA;
SetPlayerSkin(playerid, 281);
SendClientMessage(playerid, FARBA_MODRA, "[ ! ] Pripojil si sa ku mestskej polícii LVPD.");
SendClientMessage(playerid, FARBA_SVETLOMODRA, "Prikazy: /jail /hide /unhide /s /k /p");
}
case 1:
{
HideMenuForPlayer(P_PoliciaLV, playerid);
}
}
}
if(Current == P_PoliciaSF)
{
switch(row)
{
case 0:
{
Zamestnanie[playerid] = P_POLICIA;
SetPlayerSkin(playerid, 282);
SendClientMessage(playerid, FARBA_MODRA, "[ ! ] Pripojil si sa ku mestskej polícii SFPD.");
SendClientMessage(playerid, FARBA_SVETLOMODRA, "Prikazy: /jail /hide /unhide /s /k /p");
}
case 1:
{
HideMenuForPlayer(P_PoliciaSF, playerid);
}
}
}
return 1;
}
potom mi tam vyskocia bezdôvodne errory:
C:\Documents and Settings\Rodina\Desktop\Grand Theft Auto San Andreas\gamemodes\realplanetb.pwn(937) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Rodina\Desktop\Grand Theft Auto San Andreas\gamemodes\realplanetb.pwn(1224) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Rodina\Desktop\Grand Theft Auto San Andreas\gamemodes\realplanetb.pwn(1241) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Rodina\Desktop\Grand Theft Auto San Andreas\gamemodes\realplanetb.pwn(1258) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Link to comment
Share on other sites
6 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