/givemoney and /setmoney
#1

Guys im making a /givemonye cmd and /setmoney but now when i try to compile show me this just with my cmd /givemoney

PHP код:
CMD:givemoney(playeridparams[])
{
    if (
PlayerInfo[playerid][pAdmin] >= 4)
    {
        new 
string[128], string2[128], giveplayeridmoney;
        if(
sscanf(params"ud"giveplayeridmoney)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /givemoney [PlayerID / PartOfName] [Money]");
        if(
IsPlayerConnected(giveplayerid))
        {
            
GivePlayerMoney(giveplayeridmoney);
            
format(stringsizeof(string), "You have give player %s's $%d.",GetName(giveplayerid),money);//You have set %s's cash to an amount of $%d.
            
SendClientMessage(playeridCOLOR_SUCCESSstring);
            
format(string2 ,sizeof(string2),"Admin Notification: Administrator %s has given you $%d."GetName(id), money);
            
SendClientMessage(playeridCOLOR_SUCCESSstring2);
            new 
ip[32], ipex[32];
               new 
i_dateTime[2][3];
            
gettime(i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2]);
            
getdate(i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2]);
            
GetPlayerIp(playeridipsizeof(ip));
            
GetPlayerIp(giveplayeridipexsizeof(ipex));
            
format(stringsizeof(string), "[%i/%i/%i - %i:%i:%i] %s (IP:%s) has paid $%d to %s (IP:%s)"i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2], i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2], GetName(playerid), ipmoneyGetName(giveplayerid), ipex);
            
PayLog(string);
            
PlayerInfo[playerid][pCash] = money;
        }
    }
    else
    {
        
SendClientMessage(playeridCOLOR_CORRECTION"You are not authorized to use that command !");
    }
    return 
1;

Код HTML:
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(1766) : error 017: undefined symbol "id"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
line 1766

PHP код:
format(string2 ,sizeof(string2),"Admin Notification: Administrator %s has given you $%d."GetName(id), money); 
Reply


Messages In This Thread
/givemoney and /setmoney - by Jaua10 - 12.07.2018, 08:08
Re: /givemoney and /setmoney - by DerickClark - 12.07.2018, 08:09
Re: /givemoney and /setmoney - by Mike861 - 12.07.2018, 08:11
Re: /givemoney and /setmoney - by DerickClark - 12.07.2018, 08:12
Re: /givemoney and /setmoney - by Jaua10 - 12.07.2018, 08:25
Re: /givemoney and /setmoney - by DerickClark - 12.07.2018, 08:32
Re: /givemoney and /setmoney - by Jaua10 - 12.07.2018, 08:57
Re: /givemoney and /setmoney - by Jaua10 - 12.07.2018, 08:59
Re: /givemoney and /setmoney - by Verc - 12.07.2018, 09:02
Re: /givemoney and /setmoney - by DerickClark - 12.07.2018, 09:06

Forum Jump:


Users browsing this thread: 1 Guest(s)