Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

mim Ajuda por favor !

$
0
0
if(strcmp(cmd,"/dararma", true)==0) //No comando, em vez de usar "cmdtext", usaríamos "cmd" por causa da strtok
{
if(IsPlayerAdmin (playerid)){ //checa adm rcon
new plid, idarma, string[128]; //variaveis locais, variavel string armazenando caracter
136 tmp = strtok(cmdtext, idx);
137 if(!strlen(tmp)){
SendClientMessage(playerid, verde, " | ERRO | Digite: /dararma [id] [id-da-arma]");
return 1;
}
plid = strval(tmp);
141 tmp = strtok(cmdtext, idx);
142 if(!strlen(tmp)) {
143 SendClientMessage(playerid, verde, " | ERRO | Digite: /dararma [id] [id-da-arma]");
return 1;
}
147 idarma = strval(tmp);
if(idarma == 40){
SendClientMessage(playerid, verde, " | ERRO | Arma Proibida!");
return 1;
}
if(IsPlayerConnected(plid)){
GivePlayerWeapon(plid,idarma,100);
SendClientMessage(playerid, verde, " | INFO | Comando efetuado com sucesso!");
format(string, sizeof(string), " | INFO | O Administrador %s (%d) te deu a arma de id: %d", PlayerName(playerid),playerid,idarma);
SendClientMessage(plid,verde, string);
return 1;
}else{
SendClientMessage(playerid, verde, " | ERRO | Jogador não conectado.");
return 1;
}
}
}
return 0;
}


dar esse erro
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(136) : error 017: undefined symbol "tmp"
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(137) : error 017: undefined symbol "tmp"
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(141) : error 017: undefined symbol "tmp"
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(142) : error 017: undefined symbol "tmp"
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(143) : error 017: undefined symbol "tmp"
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(147) : error 017: undefined symbol "tmp"

Viewing all articles
Browse latest Browse all 18226

Trending Articles