01.10.2014, 23:14
No estб definido cmdtext, por eso te salta el error, como veo que usas comandos con argumentos, te recomiendo usar sscanf en lugar del la funciуn que estas utilizando:
Con sscanf irнa asн:
Acб la pбgina para que lo descargues y veas mas informaciуn:
https://sampforum.blast.hk/showthread.php?tid=120356
pawn Код:
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')){
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))){
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result)){
SendClientMessage(playerid, COLOR_YELLOW, "/y [accion]");
return 1;
}
pawn Код:
new accion;
if(sscanf(params, "d", accion))
return SendClientMessage(playerid, COLOR_YELLOW, "/y [accion]");
https://sampforum.blast.hk/showthread.php?tid=120356

