21.11.2013, 05:26
Okay I'm try to make a command but I don't know how to fix this issues
Errors :
These are the codes I want to be implented
It's just simple - /gunin and /gunout
How to fix this errors? Please kindly help me
Errors :
pawn Код:
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(98955) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(98961) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(98967) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(98973) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(98979) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(98985) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(98991) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99005) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99011) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99017) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99023) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99029) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99035) : error 017: undefined symbol "PlayerNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99060) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99066) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99072) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99078) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99084) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99090) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99104) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99110) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99116) : error 017: undefined symbol "HitNameEx"
C:\Users\Douglas\Files\10-28-2013\[0.3x]Razer Roleplay\gamemodes\RGRP.pwn(99122) : error 017: undefined symbol "PlayerNameEx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
24 Errors.
It's just simple - /gunin and /gunout
Код:
CMD:gunin(playerid, params[]) return cmd_gin(playerid, params); CMD:gin(playerid, params[]) { new gout[10]; if (!sscanf(params, "s[10]", gout)) { if(!strcmp(gout, "ak47", true) || !strcmp(gout, "ak-47", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s AK-47 on %s back.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "m4", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s M4 on %s back.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "sniper", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s sniper on %s back.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "rifle", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s hunting rifle on %s back.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "eaglec", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s .50 AE Desert Eagle back on %s gun holster.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "eagle", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on lifts %s shirt and places %s .50 AE Desert Eagle under it.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "shotgun", true) || !strcmp(gout, "sgun", true)) { new string[256]; format(string,sizeof(string), "* %s places %s shotgun on %s back.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } /* else if(!strcmp(gout, "spas12", true) || !strcmp(gout, "s12", true)) { new string[256]; format(string,sizeof(string), "* %s places %s automated pump shotgun on %s back.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } */ else if(!strcmp(gout, "mp5", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s MP5 under %s shirt.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "mp5c", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s MP5 on %s back.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "9mm", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on, lifts %s shirt and places %s 9mm under it.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "9mmc", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s 9mm back on %s gun holster.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "s9mm", true)) { new string[256]; format(string,sizeof(string), "* %s flips the safety switch on and places %s silenced 9mm back on %s gun holster.", HitNameEx(playerid), HisHer(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "bat", true)) { new string[256]; format(string,sizeof(string), "* %s puts down the baseball bat.", PlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_LIGHTRED, " Invalid gun name!"); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gin [Gun Name] or / gunin [Gun Name]"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Gun Names: AK-47 (ak47), M4, Sniper, Rifle, Eaglec, Eagle, Shotgun (sgun), MP5, 9mm, 9mmc, s9mm, bat"); } return 1; } CMD:gunout(playerid, params[]) return cmd_gout(playerid, params); CMD:gout(playerid, params[]) { new gout[10]; if (!sscanf(params, "s[10]", gout)) { if(!strcmp(gout, "ak47", true) || !strcmp(gout, "ak-47", true)) { new string[256]; format(string,sizeof(string), "* %s takes out an AK-47 from %s back and flips the safety switch off.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "m4", true)) { new string[256]; format(string,sizeof(string), "* %s takes out an M4 from %s back and flips the safety switch off.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "sniper", true)) { new string[256]; format(string,sizeof(string), "* %s takes out a sniper rifle from %s back and flips the safety switch off.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "rifle", true)) { new string[256]; format(string,sizeof(string), "* %s takes out a hunting rifle from %s back and flips the safety switch off.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "eagle", true)) { new string[256]; format(string,sizeof(string), "* %s takes out a .50 AE Desert Eagle from %s gun holster and flips the safety switch off.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "shotgun", true) || !strcmp(gout, "sgun", true)) { new string[256]; format(string,sizeof(string), "* %s takes out a shotgun from %s back and cocks it.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } /* else if(!strcmp(gout, "spas12", true) || !strcmp(gout, "s12", true)) { new string[256]; format(string,sizeof(string), "* %s takes out an automated pump shotgun from %s back and cocks it.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } */ else if(!strcmp(gout, "mp5", true)) { new string[256]; format(string,sizeof(string), "* %s takes out an MP5 from %s back and flips the safety switch off.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "9mm", true)) { new string[256]; format(string,sizeof(string), "* %s takes out a 9mm from %s gun holster and flips the safety switch off.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "s9mm", true)) { new string[256]; format(string,sizeof(string), "* %s takes out a silenced 9mm from %s gun holster and flips the safety switch off.", HitNameEx(playerid), HisHer(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(!strcmp(gout, "bat", true)) { new string[256]; format(string,sizeof(string), "* %s takes out a baseball bat.", PlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_LIGHTRED, " Invalid gun name!"); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Gout [Gun Name]"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Gun Names: AK-47 (ak47), M4, Sniper, Rifle, Eagle, Shotgun (sgun), MP5, 9mm, s9mm, bat"); } return 1; }