dcmd_marryhelp(playerid,params[])
{
#pragma unused params
if(IsSpawned[playerid] != 1)
{
SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You must be alive and spawned in order to be able to use this command.");
return 1;
}
if(IsKidnapped[playerid] == 1)
{
SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You are kidnapped. You cannot use this command.");
return 1;
}
if(IsFrozen[playerid] == 1)
{
SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You have been frozen by a Server Administrator. You cannot use this command.");
return 1;
}
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"Marriage Commands","{FFFFFF}/marry /maccept /madmit /sex /family","Ok","Cancel");
return 1;
}
C:\Users\WeeD\Desktop\Samp\gamemodes\SFCRRPG.pwn(16190) : warning 203: symbol is never used: "dcmd_marryhelp"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
dcmd(marryhelp,9,cmdtext);
dcmd(dcmd_marryhelp,9,cmdtext);//this is ULTRA WRONG.
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Define this,
pawn Код:
pawn Код:
|
And except the one Patroool mentioned, you need to define (if not already) dcmd:
pawn Код:
|
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
dcmd(marryhelp,9,cmdtext);
Add:
pawn Код:
|
dcmd(marryhelp,9,cmdtext);