None of my cmds are working...
#1

Can somebody help me, if you have teamviewer add me on skype Heroleo911003
None of my commands are working in my script, I dont know why, I dont see any problem.
Reply
#2

What do you mean by not working? Post your server_log.txt.
Reply
#3

Can you post one of your cmds? If you're using zcmd make sure your commands are like this:

CMD:hello

and not

cmd:hello
Reply
#4

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
What do you mean by not working? Post your server_log.txt.
My log wont help, this is my script PasteBin
Reply
#5

Quote:
Originally Posted by aoky
Посмотреть сообщение
Can you post one of your cmds? If you're using zcmd make sure your commands are like this:

CMD:hello

and not

cmd:hello
PHP код:
CMD:rollini(playeridparams[])
{
    new 
string[128], num;
    
num randomEx(020);
    for(new 
0GetPlayerPoolSize(); <= ji++)
    {
        if(
IsPlayerConnected(i))
        {
            
CheckNearbyPlayers(playeridi10);
            
format(stringsizeof string"ROLL: %s has initiated a roll of %d"NameEx(playerid), num);
            
SCM(i, -1string);
        }
    }
    return 
1;

Above is a cmd that works below is one that doesn't

PHP код:
CMD:tisland(playerid,params[])
{
    if(
PlayerInfo[playerid][AdminLevel] < 1) return SCM(playerid, -1"ERROR: Invalid Command!");
    
SetPlayerPos(playerid, -3230.0759,2576.5918,12.5826);
    
SCM(playeridCol_Grey"SERVER: You have teleported to Tutorial Island, your virtual world has been changed. Remember to /goback.");
    
SetPlayerVirtualWorld(playerid1);
    return 
1;

Reply
#6

PHP код:
CMD:tisland(playerid,params[]) 

    if(
PlayerInfo[playerid][AdminLevel] < 1) return SCM(playerid, -1"ERROR: Invalid Command!"); 
    {
    
SetPlayerPos(playerid, -3230.0759,2576.5918,12.5826); 
    
SCM(playeridCol_Grey"SERVER: You have teleported to Tutorial Island, your virtual world has been changed. Remember to /goback."); 
    
SetPlayerVirtualWorld(playerid1); 
    }
    return 
1

Reply
#7

Ignore the reply above.

What do you mean by it doesn't work? When you call the command what happens? Position change, receive the message, virtual world set, etc?
Reply
#8

Quote:
Originally Posted by aoky
Посмотреть сообщение
PHP код:
CMD:tisland(playerid,params[]) 

    if(
PlayerInfo[playerid][AdminLevel] < 1) return SCM(playerid, -1"ERROR: Invalid Command!"); 
    {
    
SetPlayerPos(playerid, -3230.0759,2576.5918,12.5826); 
    
SCM(playeridCol_Grey"SERVER: You have teleported to Tutorial Island, your virtual world has been changed. Remember to /goback."); 
    
SetPlayerVirtualWorld(playerid1); 
    }
    return 
1

Thats wrong! Read it again
PHP код:
if(PlayerInfo[playerid][AdminLevel] < 1) return SCM(playerid, -1"ERROR: Invalid Command!"); 
Reply
#9

Quote:
Originally Posted by nG Inverse
Посмотреть сообщение
Ignore the reply above.

What do you mean by it doesn't work? When you call the command what happens? Position change, receive the message, virtual world set, etc?
Most of my cmds are not working
for /tisland its suppose to teleport to me to an a scripted map but instead it says ERROR: Invalid Command
PHP код:
if(PlayerInfo[playerid][AdminLevel] < 1) return SCM(playerid, -1"ERROR: Invalid Command!"); 
And yes before you ask, I did make myself admin
Reply
#10

Quote:
Originally Posted by Heroleo911003
Посмотреть сообщение
Most of my cmds are not working
for /tisland its suppose to teleport to me to an a scripted map but instead it says ERROR: Invalid Command
PHP код:
if(PlayerInfo[playerid][AdminLevel] < 1) return SCM(playerid, -1"ERROR: Invalid Command!"); 
And yes before you ask, I did make myself admin
Probably it's the cmd which set you as an admin is bugged, so try to check your database folder and set it manually then restart the server and test the bugged cmds
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)