SA-MP Forums Archive
[Ayuda] Estos Errores Copilar. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda] Estos Errores Copilar. (/showthread.php?tid=530920)



[Ayuda] Estos Errores Copilar. - Fagrinht - 09.08.2014

Quote:

array sizes do not match, or destination array is too small

Linea:

Quote:

stock ReturnPlayerName(playerid)
{
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
return name; >>>> ESTБ ES LA LINEA QUE DA EL ERROR---!!!
}




Respuesta: [Ayuda] Estos Errores Copilar. - xTexTx - 09.08.2014

pawn Код:
stock ReturnPlayerName(playerid)
{
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, MAX_PLAYER_NAME+1);
return name;
}
Proba asн.