28.10.2011, 17:29
I have this command:
Can i do in this command something like this:
Is this coretly and is this gonna work?
pawn Код:
CMD:test(playerid, params[])
{
new location;
if(sscanf(params, "i", location))return SendClientMessage(playerid, -1, "Usage: /test [location]");
pawn Код:
CMD:test(playerid, params[])
{
new location;
if(sscanf(params, "i", location))return SendClientMessage(playerid, -1, "Usage: /test [location]");
switch(location)
{
case 0:
{
SetPlayerPos(playerid, x,y,z);
}
case 1:
{
SetPlayerPos(playerid, x,y,z);
}
...
case 5:
{
SetPlayerPos(playerid, x,y,z);
}
return 1;
}