BPS.pwn(41603) : warning 202: number of arguments does not match definition
CMD:pulartuto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando!");
return 1;
}
if(!admtrampando[playerid])
return SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando, pois nгo estб em modo trabalho!");
new para1;
if(sscanf(params, "u", para1))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /pulartuto [ID do Player]");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
//if(EmTutorial[para1] < 1) return SendClientMessage(playerid, COLOR_GREEN, "Este Jogador nгo estб em um tutorial!");
new string[128];
format(string, sizeof string, "Vocк pulou o tutorial de %s", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof string, "O admin %s te livrou do tutorial", sendername);
SendClientMessage(para1, COLOR_LIGHTGREEN, string);
NumeroTutorial[para1] = 19;
STuto(para1, NumeroTutorial[para1]); //o problema esta nessa linha
format(string, 128, "INFO: %s pulou o tutorial de %s",sendername, giveplayer);
ABroadCast(COLOR_LIGHTGREEN,string,1);
//BPSLogs("comandosadmin", string);
}
}
return 1;
}
BPS.pwn(68962) : warning 202: number of arguments does not match definition
if(newkeys & 16 && !IsPlayerInAnyVehicle(playerid))
{
ForT:enterexit(playerid, #);
ForT:equipar(playerid, #);
ForT:parma(playerid);
ForT:pitem(playerid);
ForT:esconder(playerid);
ForT:meuskin(playerid); // o problema ta nessa linha
ForT:abcowna123(playerid);
ForT:pegarpresente(playerid);
ForT:cfarmacia(playerid);
PegarDroppedExplosivo(playerid);
|
deu certo amigo vlw, e o outro do tutorial vc sabe me dizer o que й?
|
CMD:pulartuto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando!");
return 1;
}
if(!admtrampando[playerid])
return SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando, pois nгo estб em modo trabalho!");
new para1;
if(sscanf(params, "u", para1))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /pulartuto [ID do Player]");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
//if(EmTutorial[para1] < 1) return SendClientMessage(playerid, COLOR_GREEN, "Este Jogador nгo estб em um tutorial!");
new string[128];
format(string, sizeof string, "Vocк pulou o tutorial de %s", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof string, "O admin %s te livrou do tutorial", sendername);
SendClientMessage(para1, COLOR_LIGHTGREEN, string);
NumeroTutorial[para1] = 19;
STuto(para1, NumeroTutorial[para1]); //o problema esta nessa linha
format(string, 128, "INFO: %s pulou o tutorial de %s",sendername, giveplayer);
ABroadCast(COLOR_LIGHTGREEN,string,1);
//BPSLogs("comandosadmin", string);
}
}
return 1;
}
CMD:pulartuto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando!");
return 1;
}
if(!admtrampando[playerid])
return SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando, pois nгo estб em modo trabalho!");
new para1;
if(sscanf(params, "u", para1))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /pulartuto [ID do Player]");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
//if(EmTutorial[para1] < 1) return SendClientMessage(playerid, COLOR_GREEN, "Este Jogador nгo estб em um tutorial!");
new string[128], STuto;
format(string, sizeof string, "Vocк pulou o tutorial de %s", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof string, "O admin %s te livrou do tutorial", sendername);
SendClientMessage(para1, COLOR_LIGHTGREEN, string);
NumeroTutorial[para1] = 19;
STuto(para1, NumeroTutorial[para1]); //o problema esta nessa linha
format(string, 128, "INFO: %s pulou o tutorial de %s",sendername, giveplayer);
ABroadCast(COLOR_LIGHTGREEN,string,1);
//BPSLogs("comandosadmin", string);
}
}
return 1;
}
BPS.pwn(41603) : warning 202: number of arguments does not match definition
|
ele й um sistema para quando o player tiver no tutorial do server o admin pode pular ele do tutorial sу que esta com esse Warning:
PHP код:
|

CMD:pulartuto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando!");
return 1;
}
if(!admtrampando[playerid])
return SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando, pois nгo estб em modo trabalho!");
new para1;
if(sscanf(params, "u", para1))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /pulartuto [ID do Player]");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
//if(EmTutorial[para1] < 1) return SendClientMessage(playerid, COLOR_GREEN, "Este Jogador nгo estб em um tutorial!");
new string[128];
format(string, sizeof string, "Vocк pulou o tutorial de %s", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof string, "O admin %s te livrou do tutorial", sendername);
SendClientMessage(para1, COLOR_LIGHTGREEN, string);
NumeroTutorial[para1] = 19;
STuto(para1, NumeroTutorial[para1]); // o Warning ocorre aqui
format(string, 128, "INFO: %s pulou o tutorial de %s",sendername, giveplayer);
ABroadCast(COLOR_LIGHTGREEN,string,1);
//BPSLogs("comandosadmin", string);
}
}
return 1;
}
stock IniciarTutorial(playerid)
{
NumeroTutorial[playerid] = 0;
PlayerInfo[playerid][pTimerTuto] = SetTimerEx("STuto", 3000, 0, "i", playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Agora, siga com o tutorial prestando bastante atenзгo.");
return 1;
}
BPS:: STuto(playerid)
{
NumeroTutorial[playerid] ++;
new numero = NumeroTutorial[playerid];
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
ClearChatbox(playerid, 20);
if(numero == 1)
{
SetPlayerCameraPos(playerid, 1481.17, -1717.57, 34.97);
SetPlayerCameraLookAt(playerid, 1481.14, -1723.14, 32.74);
showBalao(playerid, "~>~Prefeitura~n~~n~Aqui onde voce pode pegar um emprego e ganhar dinheiro", 40000);
}
else if(numero == 2)
{
SetPlayerCameraPos(playerid, 1435.75, -1716.61, 23.29);
SetPlayerCameraLookAt(playerid, 1431.00, -1713.19, 22.00);
showBalao(playerid, "~>~Centro de licencas~n~~n~Aqui voce pode fazer a carteira de motorista, veiculos terrestres,aereos e maritimos", 40000);
}
else if(numero == 3)
{
SetPlayerCameraPos(playerid, 1995.66, -1467.93, 42.59);
SetPlayerCameraLookAt(playerid, 1998.82, -1463.31, 40.44);
showBalao(playerid, "~>~Hospital~n~~n~Aqui vai ser onde voce ira nascer depois de morrer", 40000);
}
else if(numero == 4)
{
SetPlayerCameraPos(playerid, 2305.48, -1658.29, 18.86);
SetPlayerCameraLookAt(playerid, 2307.25, -1652.84, 17.07);
showBalao(playerid, "~>~Barzinho~n~~n~Neste bar voce podera divertir com seus amigos jogando bilhar", 40000);
}
else if(numero == 5)
{
SetPlayerCameraPos(playerid, 2250.19, -1647.97, 25.83);
SetPlayerCameraLookAt(playerid, 2248.67, -1653.27, 23.46);
showBalao(playerid, "~>~Loja de Roupas~n~~n~Neste local voce podera trocar a skin de seu personagem", 40000);
}
else if(numero == 6)
{
SetPlayerCameraPos(playerid, 2223.68, -1735.28, 19.46);
SetPlayerCameraLookAt(playerid, 2226.25, -1730.19, 17.60);
showBalao(playerid, "~>~Ginasio de Lutas~n~~n~Aqui voce podera trocar a qualquer momento seu estilo de lutar", 40000);
}
else if(numero == 7)
{
SetPlayerCameraPos(playerid, 1514.50, -1675.46, 35.07);
SetPlayerCameraLookAt(playerid, 1519.89, -1675.46, 32.44);
showBalao(playerid, "~>~Delegacia de Policia~n~~n~Quando voce precisar de um policial, venha ate este local", 40000);
}
else if(numero == 8)
{
SetPlayerCameraPos(playerid, 1352.19, -1738.42, 28.44);
SetPlayerCameraLookAt(playerid, 1352.27, -1743.52, 25.30);
showBalao(playerid, "~>~Mercado 24-7~n~~n~Aqui voce pode comprar um celular e outras coisas para comecar a sua vida", 40000);
}
else if(numero == 9)
{
SetPlayerCameraPos(playerid, 2079.53, -1806.77, 29.47);
SetPlayerCameraLookAt(playerid, 2084.53, -1806.65, 26.16);
showBalao(playerid, "~>~Well Pizza Stacked~n~~n~Quando voce sentir fome, venha ate este local para comer algo", 40000);
}
else if(numero == 10)
{
SetPlayerCameraPos(playerid, 912.55, -1352.67, 25.93);
SetPlayerCameraLookAt(playerid, 917.32, -1352.62, 22.30);
showBalao(playerid, "~>~Cluckin Bell~n~~n~Quando voce sentir fome, venha ate este local para comer algo", 40000);
}
else if(numero == 11)
{
SetPlayerCameraPos(playerid, 831.44, -1620.04, 24.76);
SetPlayerCameraLookAt(playerid, 826.05, -1619.93, 22.13);
showBalao(playerid, "~>~Burger Shot~n~~n~Quando voce sentir fome, venha ate este local para comer algo", 40000);
}
else if(numero == 12)
{
SetPlayerCameraPos(playerid, 1686.44, -2282.18, 34.05);
SetPlayerCameraLookAt(playerid, 1686.46, -2287.50, 31.28);
showBalao(playerid, "~>~Seja bem vindo~n~~n~Precisando de ajuda, chame um administrador ou helper usando /relatorio ou /duvida", 40000);
}
else if(numero > 12)
{
static
gstring[85]
;
Controle(playerid, 1);
ClearChatbox(playerid, 100);
PlayerInfo[playerid][pTut]= 1;
gNoticias[playerid] = 0; gFam[playerid] = 0;
Controle(playerid, 1);
SetPlayerVirtualWorld(playerid,0);
MedicBill[playerid] = 0;
TogglePlayerSpectating(playerid, false);
SetPlayerSpawn(playerid);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pConta] = 100000;
PlayerInfo[playerid][pCreditos] += 20;
PlayerPlayMusic(playerid);
RegistrationStep[playerid] = 4;
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 5000);
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, COLOR_WHITE, "{FFD700}Caso tenha uma duvida, USE /relatorio ou /duvida que algum admin ou Helper irб ajuda-lo!");
if(PlayerInfo[playerid][pSex] == 2)
{
format(gstring, sizeof(gstring), "~p~~h~Bem vinda ~n~~y~~h~ %s", PlayerName(playerid));
GameTextForPlayer(playerid, gstring, 5000, 1);
}
if(PlayerInfo[playerid][pSex] == 1)
{
format(gstring, sizeof(gstring), "~w~Bem vindo ~n~~b~ %s", PlayerName(playerid));
GameTextForPlayer(playerid, gstring, 5000, 1);
}
static email[128];
format(email,127,Pasta_Emails,NomePlayer(playerid));
if(!DOF2_FileExists(email))DOF2_CreateFile(email);
for(new i=0;i<sizeof(Emails);i++)
DOF2_SetString(email,Emails[i],"Vazio");
DOF2_SaveFile();
DOF2_SetString(email,Emails[0],"''Seja muito bem vindo ao nosso servidor, tenha um bom jogo!'' de: nome server");
DOF2_SaveFile();
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк acaba de receber um novo e-mail de nome server, use /email para ve-lo..");
return true;
}
PlayerInfo[playerid][pTimerTuto] = SetTimerEx("STuto", 6000, 0, "i", playerid);
return true;
}
stock PegarCaixaProximo(playerid)
{
new cid = -1, Float:dis = 999999.999;
new Float:x, Float:y, Float:z;
for(new i; i < MAX_CAIXAS; i++)
{
GetDynamicObjectPos(CaixaInfo[i][Caixa_Object], x, y, z);
if(GetPlayerDistanceFromPoint(playerid, x, y, z) < dis)
{
dis = GetPlayerDistanceFromPoint(playerid, x, y, z);
cid = i;
}
}
return cid;
}
CMD:pulartuto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando!");
return 1;
}
if(!admtrampando[playerid])
return SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar este comando, pois nгo estб em modo trabalho!");
new para1;
if(sscanf(params, "u", para1))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /pulartuto [ID do Player]");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
//if(EmTutorial[para1] < 1) return SendClientMessage(playerid, COLOR_GREEN, "Este Jogador nгo estб em um tutorial!");
new string[128];
format(string, sizeof string, "Vocк pulou o tutorial de %s", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof string, "O admin %s te livrou do tutorial", sendername);
SendClientMessage(para1, COLOR_LIGHTGREEN, string);
NumeroTutorial[para1] = 19;
STuto(para1, NumeroTutorial[para1]);
format(string, 128, "INFO: %s pulou o tutorial de %s",sendername, giveplayer);
ABroadCast(COLOR_LIGHTGREEN,string,1);
//BPSLogs("comandosadmin", string);
}
}
return 1;
}