16.08.2014, 15:40
Код:
error 035: argument type mismatch (argument 2)
pawn Код:
public MSGPescarTime()
{
new randpescar = random(sizeof(MSGPescar));
SendClientMessage(COLOR_WHITE, MSGPescar[randpescar]);
return 1;
}
error 035: argument type mismatch (argument 2)
public MSGPescarTime()
{
new randpescar = random(sizeof(MSGPescar));
SendClientMessage(COLOR_WHITE, MSGPescar[randpescar]);
return 1;
}
SendClientMessage(COLOR_WHITE, MSGPescar[randpescar]); // It's SendClientMessage(playerid, COLOR_WHITE, MSGPescar[randpescar]);
// But in this case, there is no playerid, so why not use
SendClientMessageToAll(COLOR_WHITE, MSGPescar[randpescar]);
forward MSGPescarTime(playerid);
public MSGPescarTime(playerid)
{
new randpescar = random(sizeof(MSGPescar));
SendClientMessage(playerid, COLOR_WHITE, MSGPescar[randpescar]);
return 1;
}
public MSGPescarTime()
{
foreach(new i : Player)
{
new randpescar = random(sizeof(MSGPescar));
SendClientMessage(i, COLOR_WHITE, MSGPescar[randpescar]);
}
// But it seriously doesn't make any sense, why not just use SendClientMessageToAll?
return 1;
}