26.10.2016, 20:20
Hello.
I've been compiling my script and it gave me one error. So the script it's down and the error below from it. !
The ERROR:
Thank you, if you can help me fixing the error!
Ah, forgot the 8622 Line!
I've been compiling my script and it gave me one error. So the script it's down and the error below from it. !
Код:
CMD:nfweaps(playerid,params[]) { if(PlayerInfo[playerid][NFLevel] >= 1) { SendClientMessage(playerid, red, "{5EFF00}Enjoy NF Weaps"); CMDMessageToNF(playerid,"NFWEAPS"); GivePlayerWeapon(playerid,28,1000); GivePlayerWeapon(playerid,31,1000); GivePlayerWeapon(playerid,34,1000); GivePlayerWeapon(playerid,16,1000); GivePlayerWeapon(playerid,14,1000); GivePlayerWeapon(playerid,9,1); GivePlayerWeapon(playerid,24,1000); GivePlayerWeapon(playerid,26,1000); return 1; new string[128]; format(string,sizeof(string),"{FF0000}[INFO]:{00C7FF} %s used the command /nfweaps {FF0000}/nfweaps", pName ); SendClientMessageToAll(COLOR_RED, string); } else return SendClientMessage(playerid,red,"ERROR: You need to be NF Member to use this command"); }
Код:
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\NFTDM[3.7].pwn(8622) : error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Ah, forgot the 8622 Line!
Код:
new string[128]; format(string,sizeof(string),"{FF0000}[INFO]:{00C7FF} %s used the command /nfweaps {FF0000}/nfweaps", pName );