[Ajuda] darlider
#1

PHP код:
CMD:darlider(playeridparams[])
{
    new 
idorgstring[256];
    if(
sscanf(params"ii"idorg)) return SendClientMessage(playerid0x9C9C9CAA"USE: /darlider [ID] [ORGANIZAЗГO]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid0x9C9C9CAA"Este jogador nгo estб online.");
    
    
//LINHA format(string, sizeof(string), "Vocк promoveu %s a lнder da organizaзгo: %s." PlayerName(id), GetOrgName(org));
    
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
    
    
format(stringsizeof(string), "Vocк foi promovido a lнder %s, pelo admin %s."PlayerName(id), PlayerName(playerid));
    
SendClientMessage(idCOLOR_LIGHTBLUEstring);
    
    
pDados[id][Organizacao] = org;
    
pDados[id][Cargo] = 6;
    
SpawnPlayer(id);
    return 
1;

oque tem de errado

PHP код:
C:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(287) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(287) : error 001expected token";"but found ")"
C:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(287) : error 029invalid expressionassumed zero
C
:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(287) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Reply
#2

PHP код:
CMD:darlider(playeridparams[]){
    new
        
id,
        
org,
        
string[256]
    ;
    
    if(
sscanf(params"ii"idorg))
        return 
SendClientMessage(playerid0x9C9C9CAA"USE: /darlider [ID] [ORGANIZAЗГO]");
        
    if(!
IsPlayerConnected(id))
        return 
SendClientMessage(playerid0x9C9C9CAA"Este jogador nгo estб online.");
    
format(stringsizeof(string), "administrador(a) %s, promoveu %s ."PlayerName(id), PlayerName(org));
    
SendClientMessage(playerid, -1string);
    
format(stringsizeof(string), "Vocк foi promovido a lнder %s, pelo admin %s."PlayerName(id), PlayerName(playerid));
    
SendClientMessage(id, -1string);
    
pDados[id][Organizacao] = org;
    
pDados[id][Cargo] = 6;
    
SpawnPlayer(id);
    
    return 
1;

Tenta assim.
Reply
#3

iTakelot oq tem de errado aki
PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], sucess)
{
    if(!
sucess) return SendClientMessage(playerid0xFF0000FF"[BBC]: Comando Invalido Para Mais Informaзoes Use ({33CCFF}/ajuda{FFFFFF})");
    return 
1;

PHP код:
C:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(152) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase


1 Error

Reply
#4

Correto "success" o seu estб assim "sucess"

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(!
successSendClientMessage(playerid0xFF0000FF"[BBC]: Comando Invalido Para Mais Informaзoes Use ({33CCFF}/ajuda{FFFFFF})");
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)