06.12.2011, 11:25
PHP код:
CMD:import(playerid, params[])
{
if(PlayerInfo[playerid][pFMember] == 255) return SendClientMessageEx(playerid,COLOR_ACTIONBLUE,"> You're not a member of a Offical Family."); {
if(IsPlayerInRangeOfPoint(playerid, 4.0, 2556.1704,-1295.8506,1044.1250) return SendClientMessageEx(playerid, COLOR_ACTIONBLUE, "> You're not at the Weapon Factory located in Las Venturas."); {
if(PlayerInfo[playerid][pWRestricted] > 0) return SendClientMessageEx(playerid, COLOR_ACTIONBLUE, "> You cannot use this as you are currently restricted from possessing weapons!");
{
new choice[32], opstring[100];
if(sscanf(params, "s[32]S[100]", choice, opstring))
{
SendClientMessageEx(playerid, COLOR_LIGHTRED, "[Weapon Factory]: {FFFFFF}What weapon do you wish to import?");
SendClientMessageEx(playerid, COLOR_GREY, "[Stock]: {FFFFFF}SDPistol ($400), Shotgun ($600), MP5 ($800) ");
SendClientMessageEx(playerid, COLOR_GREY, "[Stock]: {FFFFFF}UZI ($600) AK47 ($1,500)");
return 1;
}
else if(strcmp(choice,"SDPistol",true) == 0)
{
if(GetPlayerCash(playerid) >= 400)
{
GivePlayerValidWeapon(playerid, 23, 99999);
GivePlayerCash(playerid, -400);
SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a SDPistol for $400");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your SDPistol has succesfully been imported.");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a SDPistol.");
return 1;
}
}
else if(strcmp(choice,"Shotgun",true) == 0)
{
if(GetPlayerCash(playerid) >= 6)
{
GivePlayerValidWeapon(playerid, 25, 99999);
GivePlayerCash(playerid, -600);
SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a Shotgun for $600");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your Shotgun has succesfully been imported.");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a Shotgun.");
return 1;
}
}
else if(strcmp(choice,"MP5",true) == 0)
{
if(GetPlayerCash(playerid) >= 800)
{
GivePlayerValidWeapon(playerid, 29, 99999);
GivePlayerCash(playerid, -800);
SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a MP5 for $800");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your MP5 has succesfully been imported.");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a MP5.");
return 1;
}
}
else if(strcmp(choice,"UZI",true) == 0)
{
if(GetPlayerCash(playerid) >= 600)
{
GivePlayerValidWeapon(playerid, 28, 99999);
GivePlayerCash(playerid, -600);
SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a UZI for $600");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your UZI has succesfully been imported.");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a UZI.");
return 1;
}
}
else if(strcmp(choice,"AK47",true) == 0)
{
if(GetPlayerCash(playerid) > 1500)
{
GivePlayerValidWeapon(playerid, 30, 99999);
GivePlayerCash(playerid, -1500);
SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a AK47 for $1500");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your AK47 has succesfully been imported.");
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a AK47.");
return 1;
}
return 1;
}
}
}
}
Код:
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2943) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2950) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2957) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2966) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2980) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2987) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2991) : error 017: undefined symbol "GivePlayerCash" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2994) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3001) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3009) : error 017: undefined symbol "GivePlayerCash" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3012) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3019) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3026) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3040) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3049) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3061) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3080) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3094) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3108) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3116) : error 017: undefined symbol "GivePlayerCash" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3121) : error 017: undefined symbol "ProxDetector" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3280) : error 017: undefined symbol "GivePlayerCash" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3552) : error 017: undefined symbol "GivePlayerCash" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3553) : error 017: undefined symbol "GivePlayerCash" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(4854) : error 017: undefined symbol "NOPCheck" C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(5431) : error 017: undefined symbol "NOPCheck" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.