Error.
#1

Hello guys. Please help. I use ZCMD.
PHP код:
CMD:giveveh(playeridparams[]) 
PHP код:
C:\Users\1\Desktop\Sanchez Server\gamemodes\gamemode.pwn(220) : error 029invalid expressionassumed zero
C
:\Users\1\Desktop\Sanchez Server\gamemodes\gamemode.pwn(220) : error 017undefined symbol "cmd_giveveh"
C:\Users\1\Desktop\Sanchez Server\gamemodes\gamemode.pwn(220) : error 029invalid expressionassumed zero
C
:\Users\1\Desktop\Sanchez Server\gamemodes\gamemode.pwn(220) : fatal error 107too many error messages on one line 
Reply
#2

post full command.
Reply
#3

PHP код:
CMD:giveveh(playeridparams[])
{
    new
        
targetid,
        
modelid,
        
color_1,
        
color_2;
    if(
sscanf(params"uiI(-1)I(-1)"targetidmodelidcolor_1color_2))
        return 
SendClientMessage(playerid, -1"???????????: /giveveh [targetid] [modelid] {color_1} {color_2}");
    if(
== IsPlayerConnected(targetid))
        return 
SendClientMessage(playerid, -1"?????? ?????? ??? ?? ???????.");
    if(!(
400 <= modelid <= 611))
        return 
SendClientMessage(playerid, -1"?????? ?????????? ?? ??????????.");
    new
        
Floatp_pos_x,
        
Floatp_pos_y,
        
Floatp_pos_z,
        
Floatp_pos_a;
    
GetPlayerPos(targetidp_pos_xp_pos_yp_pos_z);
    
GetPlayerFacingAngle(targetidp_pos_a);
    
PutPlayerInVehicle(targetidCreateVehicle(modelidp_pos_xp_pos_yp_pos_zp_pos_acolor_1color_2, -1), 0);
    static const
        
fmt_str[] = "?? ?????? ?????? %s (%i) ???????????? ????????. ID ??????: %i.";
    new
        
str[sizeof(fmt_str) + (-MAX_PLAYER_NAME) + (-3) + (-3)];
    
GetPlayerName(targetidstrMAX_PLAYER_NAME 1);
    
format(strsizeof(str), fmt_strstrtargetidmodelid);
    return 
SendClientMessage(playerid0xFF0000FFstr);

Reply
#4

Make sure the command is not in any function/callback.
Reply
#5

Is zcmd is included?
the command should be placed as global not as local to any callback or function.
Reply
#6

Make sure that you have the following things
1. Make sure zcmd is included #include <zcmd>
2. Make sure that the command is not located in any public function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)