[Ayuda]їY estas advertencias?
#1

Hola, tengo una consulta.
їPorque me sale estos warnings?
Quote:

D:\Killing Zone Freeroam\gamemodes\KZFR.pwn(12483) : warning 202: number of arguments does not match definition
D:\Killing Zone Freeroam\gamemodes\KZFR.pwn(12483) : warning 202: number of arguments does not match definition
D:\Killing Zone Freeroam\gamemodes\KZFR.pwn(12502) : warning 202: number of arguments does not match definition
D:\Killing Zone Freeroam\gamemodes\KZFR.pwn(12502) : warning 202: number of arguments does not match definition

Linea 12483:
PHP код:
SendClientMessageToAll(red"Evento Fъtbol: El partido entre %s vs %s ha empezado!!!"EsPJ1EsPJ2); 
Linea 12502:
PHP код:
SendClientMessageToAll(red"Evento Fъtbol: El partido entre %s vs %s ha finalizado"EsPJ1EsPJ2); 
De antemano, Gracias.
Reply
#2

SendClientMessageToAll(color, const mensaje[]);

Tienes argumentos de extra.
Reply
#3

Es porque SendClientMessageToAll solo tiene 2 parбmetros y tu pusiste 4.

La forma correcta serнa:

pawn Код:
new string[128];
format(string, sizeof(string), "Evento Fъtbol: El partido entre %s vs %s ha empezado!!!", EsPJ1, EsPJ2);  
SendClientMessageToAll(red, string);
Saludos.
Reply
#4

debes usar format en estos tipos de mensajes
Код:
new string[100];
format(string, sizeof(string), "Evento Fъtbol: El partido entre %s vs %s ha empezado!!!", EsPJ1, EsPJ2); 
SendClientMessageToAll(red, string);
Reply
#5

Aaaah es verdad, Gracias Enzo, gracias Felipe
Reply
#6

Te dejo esto, siempre sirve https://sampwiki.blast.hk/wiki/Errors_List#Warnings
Reply
#7

Gracias Goncho, me puede funcionar siempre
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)