I need help with /pay [Simple errors]{ZCMD}
#1

Here's my pay command. It's not the full command, but to make it simple: (It's still the same without the rest)

pawn Код:
CMD:pay(playerid, params[])
{
    new id, money, log[128];
    if(!ProxDetectorS(5.0, playerid, id)) return SendClientMessage(playerid, COLOR_BS,"[BS] {E6DFDF}You are too far away from that player");
    else
    {
3327        new payer[128] = GetName(playerid);
3328        new reciever[128] = GetName(id);
3329        if (payer == reciever)
        {
            SendClientMessage(playerid, COLOR_BS, "[BS] {E6DFDF}You cannot pay yourself...");
        }
    }
    return 1;
}




Код:
C:\Documents and Settings\Vice\Desktop\NEW ROLEPLAY\gamemodes\RP.pwn(3327) : error 008: must be a constant expression; assumed zero
C:\Documents and Settings\Vice\Desktop\NEW ROLEPLAY\gamemodes\RP.pwn(3328) : error 008: must be a constant expression; assumed zero
C:\Documents and Settings\Vice\Desktop\NEW ROLEPLAY\gamemodes\RP.pwn(3329) : error 033: array must be indexed (variable "payer")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
I need help with /pay [Simple errors]{ZCMD} - by NotYoMama - 10.07.2015, 12:39
Re: I need help with /pay [Simple errors]{ZCMD} - by NotYoMama - 10.07.2015, 12:51
Re: I need help with /pay [Simple errors]{ZCMD} - by SloProKiller - 10.07.2015, 12:55
Re: I need help with /pay [Simple errors]{ZCMD} - by NotYoMama - 10.07.2015, 13:02
Re: I need help with /pay [Simple errors]{ZCMD} - by Michael B - 10.07.2015, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)