Problem with a... variable? /goto command
#10

Quote:
Originally Posted by Mencent
View Post
That's wrong. d is only for integers and u is for strings and integers.

_______________________________________-


Try this:
PHP Code:
CMD:ir(playerid,params[])
{
    new 
idJugador,Float:xJugador,Float:yJugador,Float:zJugador,StringMen[64];
    if(
pInfo[playerid][Admin] >= 1)
    {
        if(
sscanf(params,"u",idJugador))return SendClientMessage(playerid,-1,"WARNING: /ir [playerid]");
        if(!
IsPlayerConnected(idJugador))return SendClientMessage(playerid,-1,"playerid doesn't exists");
        if(
IsPlayerInAnyVehicle(playerid))
        {
              new 
vehiculo GetPlayerVehicleID(playerid);
              new 
seat GetPlayerVehicleSeat(playerid);
              
GetPlayerPos(idJugadorxJugadoryJugadorzJugador);
              
SetPlayerPos(playeridxJugadoryJugador+2zJugador);
              
SetVehiclePos(vehiculoxJugadoryJugador+2zJugador);
              
PutPlayerInVehicle(playeridvehiculoseat);
              return 
1;
         }
         else
         {
            
GetPlayerPos(idJugadorxJugadoryJugadorzJugador);
            
SetPlayerPos(playeridxJugador+1yJugador+1zJugador);
            
format(StringMensizeof StringMen"[IR] %s fue a %s"pInfo[playerid][Name], pInfo[idJugador][Name]);
            
SendClientMessage(playeridCOLOR_REDStringMen);
            return 
1;
         }
    }
    else return 
SendClientMessage(playeridCOLOR_RED"No eres staff o no tienes rango suficiente!");

Excuse me Mencent, isn't what you did is the same as I did but in a different language :/
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)