SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 31/07/2011, 10:33 PM   #1
shahartal
Big Clucker
 
Join Date: Jul 2011
Location: sa-mp
Posts: 63
Reputation: 3
Default help|SEVER: Unknown command?

This code :

pawn Code:
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
shahartal is offline  
Old 31/07/2011, 10:36 PM   #2
Jefff
Banned
 
Join Date: Dec 2007
Posts: 2,593
Reputation: 326
Default Re: help|SEVER: Unknown command?

Its array crash, show the last print
pawn Code:
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;
}
Jefff is offline  
Old 01/08/2011, 02:15 PM   #3
shahartal
Big Clucker
 
Join Date: Jul 2011
Location: sa-mp
Posts: 63
Reputation: 3
Default Re: help|SEVER: Unknown command?

i dont get it, what you do? dont work S:
shahartal is offline  
Old 01/08/2011, 02:18 PM   #4
RatHack
Huge Clucker
 
RatHack's Avatar
 
Join Date: May 2010
Posts: 303
Reputation: 0
Default Respuesta: help|SEVER: Unknown command?

Post your
pawn Code:
Public OnPlayerCommandText
__________________


IP: 91.121.97.26:7797
RatHack is offline  
Old 01/08/2011, 02:19 PM   #5
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 345
Default Re: help|SEVER: Unknown command?

Hes debugging the command with print He's asking you to show the last print for the command
Kitten is offline  
Old 02/08/2011, 11:42 AM   #6
shahartal
Big Clucker
 
Join Date: Jul 2011
Location: sa-mp
Posts: 63
Reputation: 3
Default Re: help|SEVER: Unknown command?

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?

Last edited by shahartal; 02/08/2011 at 12:18 PM.
shahartal is offline  
Old 02/08/2011, 01:58 PM   #7
shahartal
Big Clucker
 
Join Date: Jul 2011
Location: sa-mp
Posts: 63
Reputation: 3
Default Re: help|SEVER: Unknown command?

Up =(
shahartal is offline  
Old 03/08/2011, 12:32 PM   #8
shahartal
Big Clucker
 
Join Date: Jul 2011
Location: sa-mp
Posts: 63
Reputation: 3
Default Re: help|SEVER: Unknown command?

UP
shahartal is offline  
Old 04/08/2011, 12:19 PM   #9
shahartal
Big Clucker
 
Join Date: Jul 2011
Location: sa-mp
Posts: 63
Reputation: 3
Default Re: help|SEVER: Unknown command?

UP S:
shahartal is offline  
Old 04/08/2011, 12:38 PM   #10
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default Re: help|SEVER: Unknown command?

Show

pawn Code:
new ANeon
MadeMan is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Command Bugged] Each time i use /respawnallcars it says Unknown Command Rand_Omar Scripting Help 11 30/09/2012 12:35 AM
Slap command returns an Unknown Command when player is not connected HydraX Help Archive 16 01/08/2011 05:19 AM
SERVER: Unknown Command but the Command works anantanni Help Archive 13 19/03/2011 05:00 AM
Command returns SERVER: Unknown command admantis Help Archive 7 09/12/2010 06:52 AM
SERVER: Unknown Command when using a scripted command and it does execute! Moustafa Help Archive 6 11/06/2010 01:34 PM


All times are GMT. The time now is 06:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.