26.03.2014, 21:09
I am having some problem with make a /vw command
I want it like /vw (1-999999)
Can any one tell me how should I do it?
I want it like /vw (1-999999)
Can any one tell me how should I do it?
CMD:vw(playerid, params[])
{
new vw, string[100];
if(sscanf(params,"i", vw) || vw < 0 || vw > 999999)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /vw <0-999999>.");
return 1;
}
format(string, sizeof (string), "You've set your virtual world to %i!", vw);
SendClientMessage(playerid, 0xFFFFFFFF, string);
SetPlayerVirtualWorld(playerid, vw);
return 1;
}
/vw = Virtual World.
pawn Код:
|
If you are getting errors that means you don't have ZCMD. Download it from here: https://sampforum.blast.hk/showthread.php?tid=91354. I recomend that you use ZCMD because its way eazier and faster than the default one so again give it a try.
|
Then download sscanf. https://sampforum.blast.hk/showthread.php?tid=120356
|