13.06.2009, 10:51
To get rid of warning 217, you must indentate your code, like this:
not like
Indentation means when there is an opening bracket, next line must move on by 4 spaces (in PAWNcc default is 8, yet it is defined to 4 in a_samp.inc). You can generate that by pressing TAB.
You get the errors at line 121 because you don't close OnPlayerSelectedMenuRow properly, you do this:
Indentation plays a big role, so you could see what is wrong.
You miss a } (closing bracket).
That is how the compiler reads it, which puts OnPlayerCommandText into previous callback...
Код:
public OnFilterScriptInit() { code(); }
Код:
public OnFilterScriptInit() { code(); }
You get the errors at line 121 because you don't close OnPlayerSelectedMenuRow properly, you do this:
Код:
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == shop) { switch(row) { // cases here } return 1; }
You miss a } (closing bracket).
Код:
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == shop) { switch(row) { // cases here } return 1; }