06.05.2017, 15:56
How To Make A Command Like That
With That :
Please Help Me
Код:
/dm
Код:
/dm 1 //To DM 1 /dm 2 To DM 2
Код:
Usage /dm 1 , 2
/dm
/dm 1 //To DM 1 /dm 2 To DM 2
Usage /dm 1 , 2
CMD:dm(playerid, params[]) { new id; if(sscanf(params, "d", id)) return SendClientMessage(playerid, COLOR_WHITE, "/dm [1-2]"); if(id == 1) { SetPlayerPos(playerid, X, Y, Z); } else if(id == 2) { SetPlayerPos(playerid, X, Y, Z); } return 1; }
Man is so simple.
Код:
CMD:dm(playerid, params[]) { new id; if(sscanf(params, "d", id)) return SendClientMessage(playerid, COLOR_WHITE, "/dm [1-2]"); if(id == 1) { SetPlayerPos(playerid, X, Y, Z); } else if(id == 2) { SetPlayerPos(playerid, X, Y, Z); } return 1; } |
C:\Users\Houssem\Desktop\SAMP Server\gamemodes\mtdm.pwn(359) : warning 211: possibly unintended assignment C:\Users\Houssem\Desktop\SAMP Server\gamemodes\mtdm.pwn(361) : warning 202: number of arguments does not match definition C:\Users\Houssem\Desktop\SAMP Server\gamemodes\mtdm.pwn(365) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.