18.04.2017, 18:39
Hello guys, how are you today?
can you help me in this code? i've been looking for solution and i found nothing...
Here's the code:
And here's the errors/warning:
Any help would be appreciated
can you help me in this code? i've been looking for solution and i found nothing...
Here's the code:
Код:
stock BanPlayer(playerid,reason[],admin[]) { new str[128]; BanEx(playerid,reason); format(str,sizeof(str),"You have been currently banned from this server.\nUser: %s\nReason: %s\nAdmin %s\n",PlayerName(playerid),reason,admin); ShowPlayerDialog(playerid,DIALOG_BANNED,DIALOG_STYLE_MSGBOX,"You have been banned!",str,"Leave",""); return 1; }
Код:
C:\Users\HichamMeftah\Desktop\testgm.pwn(1166) : error 012: invalid function call, not a valid address C:\Users\HichamMeftah\Desktop\testgm.pwn(1166) : warning 215: expression has no effect C:\Users\HichamMeftah\Desktop\testgm.pwn(1166) : error 001: expected token: ";", but found ")" C:\Users\HichamMeftah\Desktop\testgm.pwn(1166) : error 029: invalid expression, assumed zero C:\Users\HichamMeftah\Desktop\testgm.pwn(1166) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.