C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(552) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(553) : warning 219: local variable "tmp" shadows a variable at a preceding level C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(557) : error 029: invalid expression, assumed zero C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(557) : error 017: undefined symbol "cmd_setcar" C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(557) : error 029: invalid expression, assumed zero C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(557) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. 552: new cmd[128], idx; // 553: new tmp[128]; // 556: CMD: setcar(playerid, params[]) { 557: if(!IsPlayerAdmin(playerid)){return 0;} |
557: if(!IsPlayerAdmin(playerid)) return 0;
#include < zcmd > // topo.
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "teste");
C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(552) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(553) : warning 219: local variable "tmp" shadows a variable at a preceding level C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(556) : error 029: invalid expression, assumed zero C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(556) : error 017: undefined symbol "cmd_setcar" C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(556) : error 029: invalid expression, assumed zero C:\Users\NATAN\Desktop\Samp\[BMG] BRASIL MISTER GAMES 2012\gamemodes\GM.pwn(556) : fatal error 107: too many error messages on one line |
new string[256]; new cmd[128], idx; // new tmp[128]; // cmd = strtok(cmdtext, idx);// CMDetcar(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "teste"); new plid, modeloid,cor1,cor2; tmp = strtok(cmd, idx); if(!strlen(tmp)){ SendClientMessage(playerid, vermelho, "[Info-Insano]: /setcar [PlayerID] [ModeloID] [Cor1] [Cor2]"); return 1; } plid = strval(tmp); //================================================== ==================== tmp = strtok(cmd, idx); if(!strlen(tmp)) { SendClientMessage(playerid, vermelho, "[Info-Insano]: /setcar [PlayerID] [ModeloID] [Cor1] [Cor2]"); return 1; } modeloid = strval(tmp); //================================================== ==================== tmp = strtok(cmd, idx); if(!strlen(tmp)) { SendClientMessage(playerid, vermelho, "[Info-Insano]: /setcar [PlayerID] [ModeloID] [Cor1] [Cor2]"); return 1; } cor1 = strval(tmp); //================================================== ==================== tmp = strtok(cmd, idx); if(!strlen(tmp)) { SendClientMessage(playerid, vermelho, "[Info-Insano]: /setcar [PlayerID] [ModeloID] [Cor1] [Cor2]"); return 1; } cor2 = strval(tmp); //================================================== ==================== if(!IsPlayerConnected(plid)){ SendClientMessage(playerid, vermelho, "[Info-Insano]: Jogador nгo estб conectado!"); return 1; } if(modeloid >= 400 && modeloid <= 611){ if(CriarVeiculoPlayer(playerid,plid,modeloid,cor1, cor2)){ SendClientMessage(playerid, verde, "[Info-Insano]: Veiculo Criado e Salvo com sucesso!"); new msg[256]; format(msg,256,"[Info-RedBull]: O Administrador %s Criou Um Veiculo Exclusivo Para Vocк!",PlayerNome(playerid)); SendClientMessage(plid, verde, msg); }else{ SendClientMessage(playerid, verde, "[Info-Insano]: Erro ao criar o veiculo!"); } return 1; }else{ SendClientMessage(playerid, vermelho, "[Info-Insano]: Modelo ID Incorreto! (400-611)"); return 1; } } return 0; } |