givemoeny problem.
#1

PHP код:
CMD:givemoney(playeridparams[])
{
    new 
targetid,type,string[128];
    if(
sscanf(params"ui"targetidtype)) return SendClientMessage(playeridCOLOR_GRAD2"USAGE: {FFFFFF}/givemoney [playerid] [amount]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playeridCOLOR_GREY"* This player is not in server..");
    if(
type || type 99999999) return SendClientMessage(playeridCOLOR_GREY"* Cannot go under 0 or above 99999999.");
    if(
PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playeridCOLOR_GRAD1"You are not ADMIN!");
    
GivePlayerCash(targetidtype);
    
format(stringsizeof(string),"AdmCmd: %s give player %s %d SAK"RPNameplayerid ), RPNametargetid ), type);
    
SendAdminMessage(COLOR_YELLOW,string);
    return 
1;

This code..

So if i try but /givemoney 0 300 its say "This player is not in server.." Why?? if my id is 0
Reply


Messages In This Thread
givemoeny problem. - by b0b - 01.08.2016, 15:24
Re: givemoeny problem. - by Shinja - 01.08.2016, 15:59
Re: givemoeny problem. - by FuNkYTheGreat - 01.08.2016, 16:00
Re: givemoeny problem. - by b0b - 01.08.2016, 16:09
Re: givemoeny problem. - by jlalt - 01.08.2016, 16:12
Re: givemoeny problem. - by b0b - 01.08.2016, 16:19
Re: givemoeny problem. - by Vince - 01.08.2016, 18:14
Re: givemoeny problem. - by Deadpoop - 01.08.2016, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)