02.08.2014, 23:16
(
Последний раз редактировалось Sarra; 03.08.2014 в 00:19.
)
Hi this is my first ZCMD command, also first time using sscanf
here is the command (I just started it)
idk what's happening,
here is the command (I just started it)
pawn Код:
CMD:createveh(playerid, params[])
{
new
vehid,colorid1,colorid2;
new
Float:x,Float:y,Float:z;
if (sscanf(params, "iii", vehid, colorid1, colorid2)) SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /createveh [Vehicle ID] [Color 1 ID] [Color 2 ID]");
else
{
GetPlayerPos(playerid, x, y, z);
CreateVehicle(vehid, x, y, z, 0, colorid1, colorid2, 1);
}
return 1;
}
Код:
(93) : error 029: invalid expression, assumed zero (93) : error 017: undefined symbol "cmd_createveh" (93) : error 029: invalid expression, assumed zero (93) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>