native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
|
Wow sound great, is that a good streamer ? https://sampforum.blast.hk/showthread.php?tid=102865
I will try to create the Rand dance. |
|
Wow sound great, is that a good streamer ? https://sampforum.blast.hk/showthread.php?tid=102865
I will try to create the Rand dance. |

|
One more question, How can i create a command with a space between the command to the number, like /Help 1 and no /Help1?
Thanks. |
CMD:help(playerid, params[])
{
if(strcmp(params, "1", true) == 0)
{
//codes
}
else if(strcmp(params, "2", true) == 0)
{
//codes
}
return 1;
}
if(strcmp(cmdtext, "/help", true) == 0)
{
if(strcmp(cmdtext, "1", true) == 0)
{
//codes
}
else if(strcmp(cmdtext, "2", true) == 0)
{
//codes
}
return 1;
}
This forum requires that you wait 120 seconds between posts. Please try again in 27 seconds.
|
Yes that is good streamer we recommend it
![]() use strcmp Ex. pawn Код:
pawn Код:
Usage: /help [1/2] to add more duplicate the strcmp and change the value "1" Код:
This forum requires that you wait 120 seconds between posts. Please try again in 27 seconds. ![]() |
(1243) : error 017: undefined symbol "params"
(1254) : warning 217: loose indentation
1254) : error 017: undefined symbol "params"
(1259) : warning 217: loose indentation
1243 : if(strcmp(params, "1", true) == 0)
1254 : else if(strcmp(params, "2", true) == 0)
1259 : return 1;
(1258) : warning 217: loose indentation
(1265) : warning 217: loose indentation
1258 : return 1;
1265 : return 1;
if(strcmp(cmd,"/Carhelp",true)==0)
{
tmp=strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,0xFFFFFFFF,"Usage : /Carhelp [1-3]");
if(strcmp(tmp,"1",true))
{
SendClientMessage(playerid,0x0099FFFF,"-------- [Vehicle/Car System!] --------");
SendClientMessage(playerid,0x00FF00FF,"/Car - Information about a vehicle.");
SendClientMessage(playerid,0x00FF00FF,"/Cars - Information with Statistics about the server vehicles.");
SendClientMessage(playerid,0x00FF00FF,"/Buycar - To buy a vehicle.");
SendClientMessage(playerid,0x00FF00FF,"/Sellcar - To sell your own vehicle.");
SendClientMessage(playerid,0x00FF00FF,"/Callcar - To call your vehicle to your currect position.");
SendClientMessage(playerid,0x00FF00FF,"/Eject - To eject a player from your vehicle.");
SendClientMessage(playerid,0x0099FFFF,"-------- [Carhelp Page 1] --------");
return 1;
}
if(strcmp(tmp,"2",true))
{
SendClientMessage(playerid,0x0099FFFF,"[The3DeViL Helping Menu] щмен мк, бшек дба мъфшйи дтжшд, осфш 2");
return 1;
}
return 1;
}
|
I just created it by some tutorial i read, but i have two warnings.
When i'm doing it in the server it's saying the usage line... again and again. pawn Код:
pawn Код:
pawn Код:
|
if(strcmp(cmd,"/Carhelp",true)==0)
{
tmp=strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,0xFFFFFFFF,"Usage : /Carhelp [1-3]");
if(strcmp(tmp,"1",true))
{
SendClientMessage(playerid,0x0099FFFF,"-------- [Vehicle/Car System!] --------");
SendClientMessage(playerid,0x00FF00FF,"/Car - Information about a vehicle.");
SendClientMessage(playerid,0x00FF00FF,"/Cars - Information with Statistics about the server vehicles.");
SendClientMessage(playerid,0x00FF00FF,"/Buycar - To buy a vehicle.");
SendClientMessage(playerid,0x00FF00FF,"/Sellcar - To sell your own vehicle.");
SendClientMessage(playerid,0x00FF00FF,"/Callcar - To call your vehicle to your currect position.");
SendClientMessage(playerid,0x00FF00FF,"/Eject - To eject a player from your vehicle.");
SendClientMessage(playerid,0x0099FFFF,"-------- [Carhelp Page 1] --------");
return 1;
}
if(strcmp(tmp,"2",true))
{
SendClientMessage(playerid,0x0099FFFF,"[The3DeViL Helping Menu] u`i`a*i' i`e^, a'?a*e^ a"a'a` i`u'o^?e'e` a"o`??a", i^n~o^? 2");
return 1;
}
return 1;
|
1. Yes,with streamer plugin
Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0); 2. Streamer it helps you to add more object,to move them..etc 3 I don`t understand. Edit: To late. |