06.11.2014, 22:45
Hola a todos,como veran tengo un problema simple,pero facil para gente con mas conocimientos,y es que tengo un comando que es /botduelo [id del bot],pero esta en otro procesador de comando,quisiera que me lo pasaran a CMD:botduelo(playerid, params[])
aqui el comando:
porque intente cambiando lo del principio,osea esto:
pero me saltan estos errores:
espero que me puedan ayudar.saludos!!
aqui el comando:
Код:
if(!strcmp(tmp, "duel", true))
{
new guards = Bodyguards[playerid];
// Check the bodyguards count for player
if(guards == 0)
{
SendClientMessage(playerid, -1, "No bodyguards to duel");
return 1;
}
// Get the guard id
tmp = strtok(cmdtext, index);
// Check params
if(!strlen(tmp))
{
SendClientMessage(playerid, -1, "Use: /bg duelmode [id]");
return 1;
}
if(strval(tmp) < 0 || strval(tmp) > guards)
{
SendClientMessage(playerid, -1, "Invalid bodyguard");
return 1;
}
// Set the bodyguard follow flag
Bodyguard[playerid][strval(tmp) - 1][duelmode] = 1;
return 1;
}
Код:
if(!strcmp(tmp, "duel", true))
{
Код:
(3020) : error 017: undefined symbol "tmp" (3020) : error 017: undefined symbol "cmdtext" (3022) : error 017: undefined symbol "tmp" (3027) : error 017: undefined symbol "tmp" (3033) : error 017: undefined symbol "tmp" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.


que sera?
