help please
#1

PHP код:
    new cmd[256];
    if(
strcmp(cmd"/getcar"true) == 0)
           {
               if(
IsPlayerConnected(playerid))
                   {
                      if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_RED"ERROR: you are not admin");
                      new 
idx;
                      new 
id[1000];
                    
id strtok(cmdtext,idx);
                     if(
strlen(id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /getcar [carid]");
                      new 
Float:xFloat:yFloat:zFloat:Angel;
                       
GetPlayerPos(playeridxyz);
                    
GetPlayerFacingAngle(playeridAngel);
                    
CreateVehicle(strval(id), xyzAngel000);
                    return 
1;
                }
            }
                    
    return 
0;


no error + no work.... please help
Reply
#2

go in game and use
/rcon login yourpassword
The password you will find it on your server.cfg then you may use this command if not just use this:
pawn Код:
new cmd[256];
    if(strcmp(cmd, "/getcar", true) == 0)
           {
               if(IsPlayerConnected(playerid))
                   {
   
                      new idx;
                      new id[1000];
                    id = strtok(cmdtext,idx);
                     if(strlen(id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /getcar [carid]");
                      new Float:x, Float:y, Float:z, Float:Angel;
                       GetPlayerPos(playerid, x, y, z);
                    GetPlayerFacingAngle(playerid, Angel);
                    CreateVehicle(strval(id), x, y, z, Angel, 0, 0, 0);
                    return 1;
                }
            }
                     
    return 0;
}
Reply
#3

this is the code :
PHP код:
    new cmd[256];
    if(
strcmp(cmd"/getcar"true) == 0)
           {
               if(
IsPlayerConnected(playerid))
                   {
                      if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_RED"ERROR: you are not admin");
                      new 
idx;
                      new 
id[1000];
                    
id strtok(cmdtext,idx);
                     if(!
strlen(id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /getcar [carid]");
                      new 
Float:xFloat:yFloat:zFloat:Angel;
                       
GetPlayerPos(playeridxyz);
                    
GetPlayerFacingAngle(playeridAngel);
                    
CreateVehicle(strval(id), xyzAngel000);
                    return 
1;
                }
            }
    return 
0;

no errors + no work still
Reply
#4

please helppppp
Reply
#5

Quote:
Originally Posted by Armada
Посмотреть сообщение
please helppppp
go in game and use
/rcon login yourpassword
The password you will find it on your server.cfg then you may use this command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)