Reemplazar Nombre si tiene variable = 1
#7

Quote:
Originally Posted by kirk
Посмотреть сообщение
No puedes retornar un array, solo tipos primitivos, un char en este caso.

Pasalo por parametro, por referencia, entrada salida.

PHP код:
NombreJ(playerid, &nombrePJ[MAX_PLAYER_NAME]) 
{          
    if(
Desconocido[playerid] == 1
        
format(nombrePJsizeof nombrePJ"Desconocido"); 
    for(new 
0len strlen(nombrePJ); len++) 
    { 
         if (
nombrePJ[i] == '_'
        { 
            
nombrePJ[i] = ' '
        } 
    } 

me salen estos errores:
warning 202: number of arguments does not match definition
error 067: variable cannot be both a reference and an array (variable "nombrePJ")
warning 209: function "NombreJ" should return a value
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)