Some errors
#1

PHP код:
CMD:pay(playeridparams[])
{
    new 
idmoneysendername[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], string[128];
    if(
sscanf(params,"ii"idmoney)) return SCM(playeridCOLOR_LIGHTRED,"[D-RP]: {FFFFFF}/pay [playerid/partofname] [ammount]");
    if(
money || money 100000) return SendClientMessage(playeridCOLOR_LIGHTRED,"[D-RP]: {FFFFFF}You can't pay less than $1 or more than $100,000.");
    if(
ProxDetector(5.0playeridid)) return SCM(playeridCOLOR_LIGHTRED,"[D-RP]: {FFFFFF}You are too far away from that player".);
    else
    {
         
GetPlayerName(idnamesizeof(name));
        
GetPlayerName(playeridsendernamesizeof(sendername));
        new 
pmoney GetPlayerMoney(playerid);
        if (
money && pmoney >= money)
        {
            
GivePlayerCash(playerid, (money));
            
GivePlayerCash(idmoney);
            
format(stringsizeof(string), "You've paid %s $%d."name,idmoney);
            
SendClientMessage(playeridCOLOR_GREENstring);
            
format(stringsizeof(string), "You've recieved $%d from %s."moneysendernameplayerid);
            
SendClientMessage(idCOLOR_GREENstring);
            
format(stringsizeof(string), "[D-RP Admin]: %s paid $%d to %s."sendernamemoneyname);
            if(
money >= 70000)
            {
                
ABroadCast(COLOR_RED,string,1);
            }
            
format(stringsizeof(string), "* %s takes out some cash from his pocket and hands it to %s."sendername money ,name);
            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
        }
    }
    return 
1;

The Errors:


PHP код:
C:\Users\Bart\Downloads\Script\Central Roleplay Development\C-RP\gamemodes\scratch.pwn(1707) : error 035argument type mismatch (argument 3)
C:\Users\Bart\Downloads\Script\Central Roleplay Development\C-RP\gamemodes\scratch.pwn(1707) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\Bart\Downloads\Script\Central Roleplay Development\C-RP\gamemodes\scratch.pwn(1707) : error 029invalid expressionassumed zero
C
:\Users\Bart\Downloads\Script\Central Roleplay Development\C-RP\gamemodes\scratch.pwn(1707) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Reply


Messages In This Thread
Some errors - by ImprezBart - 02.11.2011, 11:01
Re: Some errors - by indi - 02.11.2011, 12:46
Re: Some errors - by ImprezBart - 02.11.2011, 13:28
Re: Some errors - by SmiT - 02.11.2011, 13:34
Re: Some errors - by ImprezBart - 02.11.2011, 13:36
Re: Some errors - by SmiT - 02.11.2011, 13:40
Re: Some errors - by ImprezBart - 02.11.2011, 13:44

Forum Jump:


Users browsing this thread: 2 Guest(s)