29.08.2010, 14:22
Код:
(85) : error 029: invalid expression, assumed zero
PHP код:
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;
_______________________
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