Need Help From Scripters
#7

i tryed i did:
pawn Код:
#include <zcmd>
#include <sscanf2>
and then the command:

pawn Код:
CMD:pm(playerid, params[])
{
    new id, message;
    if(sscanf(params,"us[128]", id, Message))
    {
        new string[128];
        format(string, sizeof(string),"PM From %s[ID: %d]: %s", GetName(id), id, Message);
        SendClientMessage(playerid, -1, string);

        format(string, sizeof(string),"PM To %s[ID: %d]: %s", GetName(playerid), id, Message);
        SendClientMessage(id, -1, string);
    }
    else SendClientMessage(playerid, -1,"Usage: /pm [id][message]");
    return 1;
}
i get this error for some reason tho :

pawn Код:
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\gamemodes\saving2.pwn(196) : error 029: invalid expression, assumed zero
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\gamemodes\saving2.pwn(196) : error 017: undefined symbol "cmd_pm"
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\gamemodes\saving2.pwn(196) : error 029: invalid expression, assumed zero
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\gamemodes\saving2.pwn(196) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
Need Help From Scripters - by DaRkAnGeL[NBK] - 09.10.2011, 20:28
Re: Need Help From Scripters - by GrimR - 09.10.2011, 20:37
Re: Need Help From Scripters - by DaRkAnGeL[NBK] - 09.10.2011, 20:58
Re: Need Help From Scripters - by GrimR - 09.10.2011, 21:08
Re: Need Help From Scripters - by DaRkAnGeL[NBK] - 09.10.2011, 21:11
Re: Need Help From Scripters - by GrimR - 09.10.2011, 21:25
Re: Need Help From Scripters - by DaRkAnGeL[NBK] - 09.10.2011, 21:34
Re: Need Help From Scripters - by GrimR - 09.10.2011, 21:56
Re: Need Help From Scripters - by $India$ - 10.10.2011, 04:10
Re: Need Help From Scripters - by GrimR - 10.10.2011, 04:24

Forum Jump:


Users browsing this thread: 1 Guest(s)