[Pedido] Alguem converter esse cmd ? (sou novato dms)
#1

Alguem converte esse cmd para strcmp ? sou novato no pawno rs.. desculpem
PHP код:
CMD:challenge(playeridparams[])
{
    new 
rplayerbet;
    if(!
sscanf(params,"ui",rplayer,bet))
    {
        if(
IsPlayerConnected(rplayer) && !IsPlayerNPC(playerid))
        {
        if(
IsPlayerInAnyVehicle(rplayer))
        {
        if(
IsPlayerInAnyVehicle(playerid))
        {
        if(
bet <= 50000 && bet >= 5000)
        {
        if(
GetPlayerMoney(playerid) >= bet)
        {
        if(
GetPVarInt(rplayer,"LRRequest") == -1)
        {
        if(
GetPVarInt(rplayer,"LR") == -1)
        {
        new 
Float:X,Float:Y,Float:Z;
        
GetPlayerPos(playerid,X,Y,Z);
        if(
IsPlayerInRangeOfPoint(rplayer,16,X,Y,Z))
        {
        new 
msg[24];
        
format(msg,24,"Bet: %i $",bet);
        
SendClientMessage(playerid,COLOR_LIGHTBLUE,msg);
        
SetPVarInt(playerid,"bet",bet);
        
SetPVarInt(rplayer,"bet",bet);
        
SetPVarInt(rplayer"LRRequest"playerid);
        
SetPVarInt(playerid"LRRequest"rplayer);
        new 
info[160], pname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
format(info,160,"%s is asking you to start a challenege race\n with a bet of $%i, do you want to do this?",pname,bet);
        
ShowPlayerDialog(rplayer1337DIALOG_STYLE_MSGBOX,"Challenge Race:",info,"Ofcouse","Nope");
        
TogglePlayerControllable(playerid,false);
        } else 
SendClientMessage(playeridCOLOR_BRIGHTRED"You should be near to that player.");
        } else 
SendClientMessage(playeridCOLOR_BRIGHTRED"Player is currently racing.");
        } else 
SendClientMessage(playeridCOLOR_BRIGHTRED"Player is already invited by someone.");
        } else 
SendClientMessage(playeridCOLOR_BRIGHTRED"You don't have that much money..");
        } else 
SendClientMessage(playeridCOLOR_RED"Min Amount: $5,000 Max Amount: $50,000");
        } else 
SendClientMessage(playeridCOLOR_BRIGHTRED"You need a vehicle to challenge someone.");
        } else 
SendClientMessage(playeridCOLOR_BRIGHTRED"The player you want to challenge doesn't have a vehicle.");
        } else 
SendClientMessage(playeridCOLOR_RED"Player is not connected.");
    } else 
SendClientMessage(playeridCOLOR_RED"Usage: /challenge [Player ID] [Bet Amount]");
    return 
true;

Quando tentei deu isso ..
(8701) : error 017: undefined symbol "params"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)