27.08.2016, 10:32
Hello everybody
I got a problem in scripting. I would be thankful if you can help me to solve it.
Errors are
and code is here
its fully code of command.
Thanks.
I got a problem in scripting. I would be thankful if you can help me to solve it.
Errors are
PHP код:
C:\Users\pc\Desktop\BTTDM\SATDM v9 Testing server\Gamemodes\Kyrie.pwn(53642) : warning 219: local variable "AFK" shadows a variable at a preceding level
C:\Users\pc\Desktop\BTTDM\SATDM v9 Testing server\Gamemodes\Kyrie.pwn(53642) : error 001: expected token: ";", but found "("
C:\Users\pc\Desktop\BTTDM\SATDM v9 Testing server\Gamemodes\Kyrie.pwn(53642) : error 029: invalid expression, assumed zero
C:\Users\pc\Desktop\BTTDM\SATDM v9 Testing server\Gamemodes\Kyrie.pwn(53642) : error 029: invalid expression, assumed zero
C:\Users\pc\Desktop\BTTDM\SATDM v9 Testing server\Gamemodes\Kyrie.pwn(53642) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Код:
CMD:ddafk(playerid,params[]) { #pragma unused params if(PlayerInfo[playerid][DD] >= 1) { new string[256],kuldoneve[MAX_PLAYER_NAME]; SendClientMessage(playerid,0x99FF00AA,"Type /ddback when you back."); GameTextForPlayer(playerid,"~r~ You are now AFK", 5000, 1); new Text3D:AFK([playerid]) = Create3DTextLabel( "AFK", 0xFF0000FF, 0.0, 0.0, 2.0, 40, 0, 0); //error Attach3DTextLabelToPlayer( AFK[playerid], playerid, 0.0, 0.0, 0.4); TogglePlayerControllable(playerid, 0); GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve)); format(string, sizeof(string), "[DareDevil]Newest Devil %s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 2) format(string, sizeof(string), "[DareDevil]Proud Devil %s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 3) format(string, sizeof(string), "[DareDevil]Light Devil%s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 4) format(string, sizeof(string), "[DareDevil]Experienced Devil %s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 5) format(string, sizeof(string), "[DareDevil]Doom Knight %s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 6) format(string, sizeof(string), "[DareDevil]Death Wisher %s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 7) format(string, sizeof(string), "[DareDevil]Golden Devil %s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 8) format(string, sizeof(string), "[DareDevil]Elite Devils %s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 9) format(string, sizeof(string), "[DareDevil]The Maestro %s now away from keyboard",kuldoneve, playerid); if(PlayerInfo[playerid][DD] == 10) format(string, sizeof(string), "[DareDevil]The DareDevils %s now away from keyboard",kuldoneve, playerid); SendClientMessageToAll(0xFFFF00AA, string); } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher DD Level to use this command", "OK", "Cancel"); return 1;}
Thanks.