help.
#1

PHP код:
        new gun GetPlayerWeapon(playerid);
* * * * if(
gun == || gun == || gun == 26 || gun == 34 || gun == 35 || gun == 36 || gun == 37 || gun == 38 || gun == 39)
* * {
* * * * new 
plname[MAX_PLAYER_NAME];
* * * * new 
string[128];
* * * * if(
Player[playerid][pAdmin] <= 1)
* * * * {
* * * * * * 
GetPlayerName(playeridplnamesizeof(plname));
* * * * * * 
format(stringsizeof(string), "{00FF00}[ÀÍÒÈ×ÈÒ]{FFFFFF}: {FF0000}%s {FFFFFF}áûë êèêíóò. Ïðè÷èíà: ÷èò íà îðóæèå!"plname);
* * * * * * 
SendAdminMessage(COLOR_LIGHTREDstring);
* * * * * * 
DelGun(playerid);
* * * * * * 
Kick(playerid);
* * * * }
* * } 
Hello, please help. ((336) : error 003: declaration of a local variable must appear in a compound block) - new gun = GetPlayerWeapon(playerid); Stars should not be. In the code they are not.
Reply


Messages In This Thread
help. - by AndreaSanchez - 07.03.2017, 16:02
Re: help. - by Toroi - 07.03.2017, 16:05
Re: help. - by AndreaSanchez - 07.03.2017, 16:08
Re: help. - by Toroi - 07.03.2017, 16:14
Re: help. - by Stinged - 07.03.2017, 18:31
Re: help. - by Toroi - 07.03.2017, 19:26
Re: help. - by Stinged - 08.03.2017, 19:49
Re: help. - by Toroi - 08.03.2017, 19:55
Re: help. - by SyS - 02.04.2017, 11:33
Re: help. - by GhostHacker9 - 02.04.2017, 13:19

Forum Jump:


Users browsing this thread: 2 Guest(s)