28.09.2011, 14:07
Ai Galera To Fazendo Um Bagui Ake.
Em sscanf e zcmd e deu uns erros que nunca vi.
olhem o code:
pf me ajudem
@EDIT eskeci os erros kkk
Em sscanf e zcmd e deu uns erros que nunca vi.
olhem o code:
pawn Код:
CMD:mo(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] >= 2){
if(sscanf(params, "s[158]nn",Texto,NM,NM2))
{
SendClientMessage(playerid,vermelho,"Uso: /co [cima/baixo/norte/sul/leste/oeste][distancia][velocidade]");
}
else
{
if(Texto == "cima") GetObjectPos(OBJ[playerid],X,Y,Z);MoveObject(OBJ[playerid],X,Y,Z+NM,NM2);
if(Texto == "baixo") GetObjectPos(OBJ[playerid],X,Y,Z);MoveObject(OBJ[playerid],X,Y,Z-NM,NM2);
if(Texto == "norte") GetObjectPos(OBJ[playerid],X,Y,Z);MoveObject(OBJ[playerid],X,Y+NM,Z,NM2);
if(Texto == "sul") GetObjectPos(OBJ[playerid],X,Y,Z);MoveObject(OBJ[playerid],X,Y-NM,Z,NM2);
if(Texto == "leste") GetObjectPos(OBJ[playerid],X,Y,Z);MoveObject(OBJ[playerid],X+NM,Y,Z,NM2);
if(Texto == "oeste") GetObjectPos(OBJ[playerid],X,Y,Z); MoveObject(OBJ[playerid],X-NM,Y,Z,NM2);
}
} else SendClientMessage(playerid,vermelho,"ERRO: Nгo Autorizado!");
return 1;
}
@EDIT eskeci os erros kkk
pawn Код:
D:\Usuarios\Desktop\WD\server\gamemodes\WD.pwn(981) : error 033: array must be indexed (variable "-unknown-")
D:\Usuarios\Desktop\WD\server\gamemodes\WD.pwn(982) : error 033: array must be indexed (variable "-unknown-")
D:\Usuarios\Desktop\WD\server\gamemodes\WD.pwn(983) : error 033: array must be indexed (variable "-unknown-")
D:\Usuarios\Desktop\WD\server\gamemodes\WD.pwn(984) : error 033: array must be indexed (variable "-unknown-")
D:\Usuarios\Desktop\WD\server\gamemodes\WD.pwn(985) : error 033: array must be indexed (variable "-unknown-")
D:\Usuarios\Desktop\WD\server\gamemodes\WD.pwn(986) : error 033: array must be indexed (variable "-unknown-")
D:\Usuarios\Desktop\WD\server\gamemodes\WD.pwn(2225) : warning 203: symbol is never used: "PIP"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.