28.10.2009, 18:05
Ok, that is fixed, but now i have another problem...
and these errors...
pawn Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);//Line 1316
if(CurrentMenu == Weapsmenu)
{
switch(row)
{
case 0: //AK-47
{
GivePlayerWeapon(playerid, 30, 3000);
SendClientMessage(playerid, COLOR_ORANGE, "Server: Weapon [AK-47] successfully spawned");
}
case 1: //HS Rocket Launcher
{
GivePlayerWeapon(playerid, 36, 3000);
SendClientMessage(playerid, COLOR_ORANGE, "Server: Weapon [HS Rocket Launcher] successfully spawned");
}
case 2: //Bazooka
{
GivePlayerWeapon(playerid, 35, 3000);
SendClientMessage(playerid, COLOR_ORANGE, "Server: Weapon [Bazooka] successfully spawned");
}
case 3: //Grenade
{
GivePlayerWeapon(playerid, 16, 3000);
SendClientMessage(playerid, COLOR_ORANGE, "Server: Weapon [Grenade] successfully spawned");
}
case 4: //Sawn-Off Shotgun
{
GivePlayerWeapon(playerid, 26, 3000);
SendClientMessage(playerid, COLOR_ORANGE, "Server: Weapon [Sawn-Off Shotgun] successfully spawned");
}
case 5: //Flamethrower
{
GivePlayerWeapon(playerid, 37, 3000);
SendClientMessage(playerid, COLOR_ORANGE, "Server: Weapon [Flamethrower] successfully spawned");
}
}
}
and these errors...
Код:
C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1316) : error 003: declaration of a local variable must appear in a compound block C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1317) : error 010: invalid function or declaration C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1319) : error 010: invalid function or declaration C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1321) : error 010: invalid function or declaration C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1326) : error 010: invalid function or declaration C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1331) : error 010: invalid function or declaration C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1336) : error 010: invalid function or declaration C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1341) : error 010: invalid function or declaration C:\Documents and Settings\mani\Desktop\Server\gamemodes\FFA.pwn(1346) : error 010: invalid function or declaration