CMD Error
#8

Quote:
Originally Posted by HassanShah
Посмотреть сообщение
its working, repted ;p
all did what i just put a printf statement and it started to work ...well ok then lol
Quote:
Originally Posted by Usama651
Посмотреть сообщение
PHP код:
CMD:givemoney(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 5)
    {
        if(
AdminDuty[playerid] != && PlayerInfo[playerid][pAdmin] < 6)
        {
            
SendClientMessage(playerid,COLOR_WHITE"You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
            return 
1;
        }
        new 
string[128], giveplayeridmoney;
        if(
sscanf(params"ud"giveplayeridmoney)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /givemoney [playerid/partofname] [money]");
        if(
IsPlayerConnected(giveplayerid))
        {
            
GivePlayerCash(giveplayeridmoney);
            
format(stringsizeof(string), "You have given %s $%d!",GetPlayerNameEx(giveplayerid),money);
            
SendClientMessage(playeridCOLOR_WHITEstring);
            
format(stringsizeof(string), "%s has given %s $%d (via /givemoney)"GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid),money);
            
Log("logs/adminmoney.log"string);
        }
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GRAD1"You're not authorized to use that command!");
    }
    return 
1;

use this its better or need more help in script contact me on fb ********.com/usamakhalid666
do you think it will work? no for sure. cause these copy pasted thing will give him error as the vars in his script and this one doesnt match.
Reply


Messages In This Thread
CMD Error - by HassanShah - 26.07.2016, 11:20
Re: CMD Error - by Quinncell - 26.07.2016, 11:34
Re: CMD Error - by SyS - 26.07.2016, 12:34
Re: CMD Error - by HassanShah - 26.07.2016, 15:17
Re: CMD Error - by SyS - 26.07.2016, 15:21
Re: CMD Error - by HassanShah - 26.07.2016, 15:56
Re: CMD Error - by Usama651 - 26.07.2016, 16:12
Re: CMD Error - by SyS - 26.07.2016, 16:15
Re: CMD Error - by Luicy. - 26.07.2016, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)