13.12.2012, 18:53
Queria uma ajuda pra resolver essas Warnings , .-.
Код:
B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(9432) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(18219) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(32105) : warning 217: loose indentation B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(38944) : warning 217: loose indentation B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55809) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55810) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55811) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55812) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55813) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55824) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55833) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55842) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55851) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55860) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55869) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55878) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55887) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55896) : warning 202: number of arguments does not match definition B:\Arquivos HD -'\BrasilRealGamesRPG\gamemodes\BRG.pwn(55905) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 13292 bytes Code size: 2475528 bytes Data size: 6786072 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 9291276 bytes 19 Warnings.
Код:
1є Erro else if (GravarSair == 2) { new name[20]; GetPlayerName(playerid, name, 20); dini_Int("hotel.ini", name, DonoQuarto[playerid]); // Linha do erro } 2є erro if((strcmp(cmd, "/promoveradmin", true) == 0 || strcmp(cmd, "/padmin", true) == 0) && (PlayerInfo[playerid][pAdmin] == DONO)) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USE: /padmin [id] [Nivel]"); return true; } new level, para1; para1 = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USE: /padmin [id] [Nivel]"); return true; } level = strval(tmp); strmid(giveplayer, AdmInfo[para1][gMembro], 0, strlen(AdmInfo[para1][gMembro]), 255); if(strcmp(giveplayer,"Vazio", true ) == 0) { SendClientMessage(playerid, COLOR_GRAD2, "Nгo tem nenhum admin nessa vaga"); return true; } if(IsPlayerOnline(giveplayer)) { SendClientMessage(playerid, COLOR_GRAD2, "O Viado estб online"); return true; } GetPlayerName(playerid, sendername, sizeof(sendername)); getdate(year, month, day); gettime(hour,minute,second); new arquivo[64]; format(arquivo, sizeof(arquivo), "Contas/%s.ini",giveplayer); dini_Int(arquivo,"AdminLevel",level); // Linha do erro format(string, sizeof(string), " Vocк promoveu o(a) %s Para o level %d de Admin.", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "(OFF)%s deu admin nivel %d para %s [%d/%d/%d] бs [%d:%d:%d].", sendername, level, giveplayer, day, month, year, hour, minute, second); PAdminsLog(string); } return true; }
E sempre no dini_Int
OBS. Nгo precisa vim falar que dof2 й melhor,
Ou ah usa zcmd+scanff
Tф usando este gamemode baseado em GF para aprender,
Depois pretendo fazer um projeto do 0
Daн sim seria , scanff zcmd ,dof2 .
Agradeзo desde jб,
OBS . Dou + REP Pra quem ajudar