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.
new string[128]; format(string,sizeof(string),"{FF0000}[INFO]:{00C7FF} %s used the command /nfweaps {FF0000}/nfweaps", pName );
|
stock pName( playerid ) { new name[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, name, sizeof name ); return name; } |
|
// Put this after The last line
if u already have it show me line 8620 - 8621 |
stock pName(playerid)
{
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
return plname;
}
GivePlayerWeapon(playerid,14,1000); GivePlayerWeapon(playerid,9,1); GivePlayerWeapon(playerid,24,1000); GivePlayerWeapon(playerid,26,1000); return 1;
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);
new string[128]; format(string,sizeof(string),"{FF0000}[INFO]:{00C7FF} %s used the command \nfweaps {FF0000}\nfweaps", pName );
SendClientMessageToAll(COLOR_RED, string);
return 1;
} else return SendClientMessage(playerid,red,"ERROR: You need to be NF Member to use this command");
}