help|SEVER: Unknown command?
#1

This code :

pawn Код:
if (strcmp("/DelNeon", cmdtext, true, 10) == 0)

    {

        if(!dini_Exists(NeonFile(GetPlayerVehicleID(playerid)))) return SendClientMessage(playerid,0xffffffff,"айп мшлб жд раеп");
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xffffffff,"аъд ма бшлб");
        dini_Remove(NeonFile(GetPlayerVehicleID(playerid)));
        DestroyObject(ANeon[GetPlayerVehicleID(playerid)]);
        RemoveObjectsFromVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid,0xffffffff,"озчъ аъ драерйн щдйе болерйъ");
        return 1;
    }
get me SEVER: Unknown command
Reply
#2

Its array crash, show the last print
pawn Код:
if(strcmp("/DelNeon", cmdtext, true, 8) == 0)
{
    print("1");
    if(!dini_Exists(NeonFile(GetPlayerVehicleID(playerid)))) return SendClientMessage(playerid,0xffffffff,"a`йi" i`?лб ?д ?a`a*i"");
    print("2");
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xffffffff,"a`ъд i`a` б?лб");
    print("3");
    dini_Remove(NeonFile(GetPlayerVehicleID(playerid)));
    print("4");
    DestroyObject(ANeon[GetPlayerVehicleID(playerid)]);
    print("5");
    RemoveObjectsFromVehicle(GetPlayerVehicleID(playerid));
    print("6");
    SendClientMessage(playerid,0xffffffff,"озчъ a`ъ д?a`a*?йн u`дйa* болa*?йъ");
    return 1;
}
Reply
#3

i dont get it, what you do? dont work S:
Reply
#4

Post your
pawn Код:
Public OnPlayerCommandText
Reply
#5

Hes debugging the command with print He's asking you to show the last print for the command
Reply
#6

if i do /delneon and the car dont have a neon it's print 1 (work Properly - show the correctly message)

if i dont in a car and do /delneon it's print 1:
it's show 1 but he need show 2 S:

if i do /delneon and the car have a neon it's Print 2 3 4 :
it's should do the 5,6 too..
why it do just the 2,3,4?
Reply
#7

Up =(
Reply
#8

UP
Reply
#9

UP S:
Reply
#10

Show

pawn Код:
new ANeon
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)