Help me out here
#1

Код:
(85) : error 029: invalid expression, assumed zero
PHP код:
if(IsPlayerAdmin(playerid))
        if(
EditingObject[playerid] == 1) return SendClientMessage(playeridCOLOR_BRIGHTRED"ERROR: You're already editing an object! Use /saveobject to save it! Or use /abort to cancel this object!");
        new 
Float:XFloat:YFloat:Zstr[256];
        if(
sscanf(params"d"newobj)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /create <objectid>");
        if(
newobj 15000 || newobj 1) return SendClientMessage(playeridCOLOR_BRIGHTRED"ERROR: Invalid objectid!");
        
GetPlayerPos(playeridXYZ);
        
EditingObject[playerid] = 1;
        
Object CreateObject(newobjX+5Y+5Z000);
        
format(strsizeof str"Succesfully placed object: %d on the coordinates: %.2f, %.2f, %.2f!"newobjXYZ);
        
SendClientMessage(playeridCOLOR_GREENstr);
        
oX X+3;
        
oY Y+3;
        
oZ Z;else
                
SendClientMessage(playerid0xF50A1CFF"You are not a admin!!");
        return 
1
why?!
_______________________
1-3$ fix warnings 1-5$fix errors
6-15$ make gamemodes(not roleplay) 3-10$ make filterscripts-scriptfiles
Dont ASK! me RolePlay questions
www.mefreeroam.tk
Reply
#2

********************bump********************
Reply
#3

pawn Код:
if(IsPlayerAdmin(playerid))
    {
        if(EditingObject[playerid] == 1) return SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You're already editing an object! Use /saveobject to save it! Or use /abort to cancel this object!");

        new Float:X, Float:Y, Float:Z, str[256];
        if(sscanf(params, "d", newobj)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /create <objectid>");
        if(newobj > 15000 || newobj < 1) return SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: Invalid objectid!");

        GetPlayerPos(playerid, X, Y, Z);
        EditingObject[playerid] = 1;
        Object = CreateObject(newobj, X+5, Y+5, Z, 0, 0, 0);
        format(str, sizeof str, "Succesfully placed object: %d on the coordinates: %.2f, %.2f, %.2f!", newobj, X, Y, Z);
        SendClientMessage(playerid, COLOR_GREEN, str);
        oX = X+3;
        oY = Y+3;
        oZ = Z;
    }
    else
    {
        SendClientMessage(playerid, 0xF50A1CFF, "You are not a admin!!");
    }
    return 1;
Try it.
Reply
#4

Quote:

C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(62) : error 017: undefined symbol "dcmd_addobject"
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(69) : error 010: invalid function or declaration
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(71) : error 010: invalid function or declaration
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(74) : error 010: invalid function or declaration
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(75) : error 010: invalid function or declaration
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(77) : error 021: symbol already defined: "GetPlayerPos"
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(86) : error 010: invalid function or declaration
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(90) : error 010: invalid function or declaration
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(55 : warning 203: symbol is never used: "X"
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(55 : warning 203: symbol is never used: "Y"
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(55 : warning 203: symbol is never used: "Z"
C:\Users\james\Desktop\servimm\filterscripts\Objec tEditor.pwn(55 : warning 203: symbol is never used: "str"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


8 Errors.

i already tryed that but i tryed urs got same errors
Reply
#5

Paste the FULL command please.
Reply
#6

lmao i did but iv fixed it jef thanks for feedback
Reply
#7

Nice that you've done it.
Thanks for your feedback.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)