Command Error
#3

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Few minutes before, another thread with the same issues has been posted.
Read it.
Now i got 1 error and 1 warning.

Code:
Quote:

// At the bottom
stock ProxDetector(Float:radi, playerid, string[],color)
{
new Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
for(new player;player<MAX_PLAYERS;player++)
{
if(!IsPlayerConnected(playerid))continue;
if(IsPlayerInRangeOfPoint(playerid,radi,x,y,z))Sen dClientMessage(player,color,string);
}
}
// AND
stock GivePlayerCash( playerid, money )
{
return SetPlayerMoney( playerid, GetPlayerMoney( playerid ) + money );
}

CMD:givefullset(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "You cannot get this full set weapon now.");
if(PlayerInfo[playerid][pWRestricted] > 0) return SendClientMessageEx(playerid, COLOR_GRAD2, "You cannot get this as you are currently restricted from possessing weapons!");
{

if(GetPlayerCash(playerid) >= 0) {
GivePlayerValidWeapon(playerid, 27, 99999);
GivePlayerCash(playerid, 0);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE," You Get Spas-12");
return 1;
}

if(GetPlayerCash(playerid) >= 0) {
GivePlayerValidWeapon(playerid, 34, 99999);
GivePlayerCash(playerid, 0);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE," You get a sniper rifle!");
return 1;
}
if(GetPlayerCash(playerid) >= 0) {
GivePlayerValidWeapon(playerid, 24, 60000);
GivePlayerCash(playerid, 0);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE," You have get Desert Eagle!");
return 1;
}
if(GetPlayerCash(playerid) >= 0) {
GivePlayerValidWeapon(playerid, 31, 99999);
GivePlayerCash(playerid, 0);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE," You get an M4!");
return 1;
}
if(GetPlayerCash(playerid) >= 0) {
SetPlayerArmour(playerid, 100);
GivePlayerCash(playerid, 0);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE," You get a kevlar vest!");
return 1;
}
Error:
Quote:

H:\Users\Ramin\Desktop\test.pwn(1 : warning 203: symbol is never used: "givefullset"
H:\Users\Ramin\Desktop\test.pwn(18 -- 59) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply


Messages In This Thread
Command Error - by raamiix - 09.12.2012, 10:27
Re: Command Error - by Konstantinos - 09.12.2012, 10:30
Re: Command Error - by raamiix - 09.12.2012, 10:32
Re: Command Error - by Konstantinos - 09.12.2012, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)