SA-MP Forums Archive
Problema - 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: Problema (/showthread.php?tid=324594)



Problema - Blesz - 10.03.2012

Hola pawnoscripting mi problema es el siguiente

Codigo Pawno:
public Mensajes()
{
new RandomM;
RandomM = random(5);//la cantidad de randoms
switch(RandomM)
{
case 0:
{
SendClientMessageToAll(-1,COLOR_GREEN,"See a Cheater`s? {FF0000}/Report.");
}
case 1:
{
SendClientMessageToAll(-1,"Acordate q tenes q cerrar el auto o te lo chorean");
}
case 2:
{
SendClientMessageToAll(-1,"Otro mensaje mas");
}
case 3:
{
SendClientMessageToAll(-1,"y ootro mas");
}
case 4:
{
SendClientMessageToAll(-1,"Y oootro masss");
}
}
return 1;
}


el problema esta es esta linea
Codigo Pawno:
SendClientMessageToAll(-1,COLOR_GREEN,"See a Cheater`s? {FF0000}/Report.");


Me salta el siguiente error:

C:\Documents and Settings\Nicolas\Mis documentos\MARTIN\Mods\Herramientas\copias\Server\ gamemodes\Destruccion-TotalFreeroam.pwn(296) : error 035: argument type mismatch (argument 2)

Eso es todo adios


Respuesta: Problema - [Nikk] - 10.03.2012

1є esto no es PS.
2є usa [pawn] y [ /pawn] (sin espacios) para marcar un codigo pawn
3є Intentа asi:
pawn Код:
SendClientMessageToAll(COLOR_GREEN,"See a Cheater`s? {FF0000}/Report.");



Respuesta: Problema - Blesz - 10.03.2012

me sirvio perfecto muchisimas gracias