[HELP] Error into my Menu -
Smiths - 31.08.2009
i got errors in this:
Код:
shop = CreateMenu("Weapon Shop", 2, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Shop, 0, "AK-47");
AddMenuItem(Shop, 1, "2000$");
error 017: undefined symbol "shop"
Why?
Re: [HELP] Error into my Menu -
mirkoiz - 31.08.2009
Quote:
Originally Posted by Smiths
error 017: undefined symbol "shop"
Why?
|
you have to
the menu shop...
Re: [HELP] Error into my Menu -
Smiths - 31.08.2009
not working.. i already got this codes....
this is all my code for the menu
pawn Код:
new Menu:shop
shop = CreateMenu("Weapon Shop", 2, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Shop, 0, "AK-47");
AddMenuItem(Shop, 1, "2000$");
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == Shop)
{
switch(row)
{
case 0:{
GivePlayerWeapon(playerid, 30, 1000);
}
}
}
return 1;
}
Re: [HELP] Error into my Menu -
mirkoiz - 31.08.2009
pawn Код:
//==== TOP OF SCRIPT
new Menu:shop
//==== OnGameModeInit(OnFilerScriptInit)
shop = CreateMenu("Weapon Shop", 2, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Shop, 0, "AK-47 - 2000$");
//========== OnPlayerSelectetedMenuRow
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == shop)
{
switch(row)
{
case 0:
{
GivePlayerWeapon(playerid, 30, 1000);
GivePlayerMoney(playerid, -2000);
}
}
}
return 1;
}
Re: [HELP] Error into my Menu -
Smiths - 31.08.2009
i know that....
Re: [HELP] Error into my Menu -
mirkoiz - 31.08.2009
Quote:
Originally Posted by Smiths
i know that....
|
whats exactly not workin?
Re: [HELP] Error into my Menu -
Smiths - 31.08.2009
i got all this errors:
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(40) : error 017: undefined symbol "shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(42) : error 017: undefined symbol "Shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(43) : error 017: undefined symbol "Shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(45) : warning 217: loose indentation
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(195) : error 017: undefined symbol "Shop"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: [HELP] Error into my Menu -
mirkoiz - 31.08.2009
Quote:
Originally Posted by Smiths
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(40) : error 017: undefined symbol "shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(42) : error 017: undefined symbol "Shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(43) : error 017: undefined symbol "Shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(195) : error 017: undefined symbol "Shop"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
|
at first i would write shop everytime lowercase (cause
is lowercase, too)
Re: [HELP] Error into my Menu -
Smiths - 31.08.2009
i still got :
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(40) : error 017: undefined symbol "shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(42) : error 017: undefined symbol "shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(43) : error 017: undefined symbol "shop"
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(45) : warning 217: loose indentation
C:\Documents and Settings\Daniel\Desktop\SAMP SERVER\gamemodes\test.pwn(195) : error 017: undefined symbol "shop"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: [HELP] Error into my Menu -
Smiths - 31.08.2009
Bump. Please help