Problema con Comando
#3

Quote:
Originally Posted by Dance94
Посмотреть сообщение
PHP код:
CMD:hola(playerid)
{
    if(
PlayerInfo[playerid][pAdmin] >= 5)
    return 
SendClientMessage(playerid, -1"No eres administrador!"); //* te falta eso...
    
    
if(PlayerInfo[playerid][pVIP] >= 3
    return 
SendClientMessage(playerid, -1"No eres usuario vip!"); //* te falta eso...
    
new string[144]; //* te falta eso
    
    
format(stringsizeof(string), "[INFO]{FFD801}El {2B65EC}Staff {CCFFFF}%s {FFD801}A Dicho Hola"Nombre(playerid)); //* te faltaba abrir un parйntesis.
    
SendClientMessageToAll(-1string); //* tenias repetida esta mierda...
    
    
return true;
}
//* Stock para obtener el nombre...  (usa uno global para no estar poniendolo en todos los comandos que quieras obtener el nombre).
stock Nombre(playerid)
{
      new 
name[MAX_PLAYER_NAME];
      
Nombre(playeridnameMAX_PLAYER_NAME);
      return 
name;

Quote:

C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (64) : warning 202: number of arguments does not match definition
C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (64) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Los 2 Me Salen En El Nombre(playerid, name, MAX_PLAYER_NAME);
Del Stock
Reply


Messages In This Thread
Problema con Comando - by Gamerd - 24.06.2017, 06:36
Re: Problema con Comando - by Dance94 - 24.06.2017, 06:46
Re: Problema con Comando - by Gamerd - 24.06.2017, 06:49
Re: Problema con Comando - by Dance94 - 24.06.2017, 07:09
Re: Problema con Comando - by Gamerd - 24.06.2017, 07:21
Respuesta: Problema con Comando - by EdgarHN - 24.06.2017, 19:47
Respuesta: Problema con Comando - by FixFl0w - 24.06.2017, 20:09
Re: Respuesta: Problema con Comando - by Dance94 - 24.06.2017, 20:31
Re: Problema con Comando - by Dance94 - 24.06.2017, 20:37
Respuesta: Re: Respuesta: Problema con Comando - by FixFl0w - 24.06.2017, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)