SendClientMessage(giveid, 0x33CCFFAA, "Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar!");
SendClientMessage(giveid, 0x33CCFFAA, "Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!", sendername);
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(285) : warning 202: number of arguments does not match definition
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(323) : warning 202: number of arguments does not match definition
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(360) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
SendClientMessage(giveid, 0x33CCFFAA, "Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!", sendername);
SendClientMessage(giveid, 0x33CCFFAA, "Vocк Acaba De Ser Expulso Da Polнcia Militar Pelo Lнder: %s!", sendername);
SendClientMessage(giveid, 0x33CCFFAA, "Vocк Acaba De Ser Promovido Na Polнcia Militar Pelo Lнder: %s!", sendername);
new string[128];
format(string,sizeof string"Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!", sendername);
SendClientMessage(giveid, 0x33CCFFAA, string);
SendClientMessage nгo dб para usar funзхes do tipo "%d, %s, %i" dentro, para isso serve a format.
exemplo: pawn Код:
|
Tens de fazer um string.
SendClientMessage й SendClientMessage(const playerid,color,const string[]); Por isso tens de fazer pawn Код:
Dб me rep se te ajudei |
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\pawno\include\Utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 001: expected token: ",", but found "-string-"
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : warning 215: expression has no effect
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : warning 215: expression has no effect
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 001: expected token: ";", but found ")"
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 029: invalid expression, assumed zero
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Fiz Isso =
PHP код:
|
if(!strcmp(cmd, "/convidar", true))
{
if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO] Vocк Nгo Й Lнder!");
new giveplayer[20];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xB4B5B7FF, "Uso: /Convidar [PlayerId]");
recrutado = ReturnUser(tmp);
if(!IsPlayerConnected(giveid))return SendClientMessage(playerid, 0xFF0000FF, "[Erro] Jogador Desconetado!");
if(IsPlayerConnected(recrutado) && Org[playerid] > 0)
{
if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO] Vocк Nгo Й Lнder!");
Org[playerid] = Org[recrutado];
if(Org[playerid] == PM)
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, 0x33CCFFAA, "Vocк Convidou O Jogador Para A Polнcia Militar Com Sucesso!");
SendClientMessage(giveid, 0x33CCFFAA, "Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!", sendername);
GetPlayerName(recrutado, giveplayer, 20);
switch (OrgInfo[Org[playerid]][Vaga])
{
case 0,1: { format(OrgInfo[Org[playerid]][Membro1], MAX_PLAYER_NAME, giveplayer); }
case 2: { format(OrgInfo[Org[playerid]][Membro2], MAX_PLAYER_NAME, giveplayer); }
case 3: { format(OrgInfo[Org[playerid]][Membro3], MAX_PLAYER_NAME, giveplayer); }
case 4: { format(OrgInfo[Org[playerid]][Membro4], MAX_PLAYER_NAME, giveplayer); }
case 5: { format(OrgInfo[Org[playerid]][Membro5], MAX_PLAYER_NAME, giveplayer); }
case 6: { format(OrgInfo[Org[playerid]][Membro6], MAX_PLAYER_NAME, giveplayer); }
case 7: { format(OrgInfo[Org[playerid]][Membro7], MAX_PLAYER_NAME, giveplayer); }
case 8: { format(OrgInfo[Org[playerid]][Membro8], MAX_PLAYER_NAME, giveplayer); }
case 9: { format(OrgInfo[Org[playerid]][Membro9], MAX_PLAYER_NAME, giveplayer); }
case 10: { format(OrgInfo[Org[playerid]][Membro10], MAX_PLAYER_NAME, giveplayer); }
}
SalvarOrgs();
OrgInfo[Org[playerid]][Vaga]++;
}
else { SendClientMessage(playerid, 0xFF0000FF, "[Erro] Vocк Nгo Estб Em Uma Organizaзгo!"); }
return true;
}