20.02.2014, 13:25
Hi, I try to make an killerstreak.. but i still get an error..
My pawn code:
The error:

The problem comes from the forward lines.
My pawn code:
Код:
new name1[MAX_PLAYER_NAME+1] = GetPlayerName(killerid, name1, sizeof(name1));
switch(killstreak[killerid])
{
case 1:
{
SendClientMessage(killerid, -1,"Your now on Killstreak of 1!");
}
case 5:
{
SendClientMessage(killerid, -1,"Your now on Killstreak of 5!!");
forward(string, sizeof(string), "NEW KILLER %s has killed 5 suspects!, stop him and KILL him!", name1);
SendClientMessageToAll(COLOR_RED, string);
}
case 10:
{
SendClientMessage(killerid, -1,"Your now on Killstreak of 10!!");
forward(string, sizeof(string), "POWER KILLER %s has killed 10 suspects!, stop him and KILL him!", name1);
SendClientMessageToAll(COLOR_RED, string);
}
case 15:
{
SendClientMessage(killerid, -1,"Your now on Killstreak of 15!!");
forward(string, sizeof(string), "HARDCORE KILLER %s has killed 15 suspects!, stop him and KILL him!", name1);
SendClientMessageToAll(COLOR_RED, string);
}
case 20:
{
SendClientMessage(killerid, -1,"Your now on Killstreak of 20!!");
forward(string, sizeof(string), "MONSTER KILLER %s has killed 20 suspects!, stop him and KILL him!", name1);
SendClientMessageToAll(COLOR_RED, string);
}
case 30:
{
SendClientMessage(killerid, -1,"Your now on Killstreak of 30!!");
forward(string, sizeof(string), "UBER KILLER %s has killed 30 suspects!, stop him and KILL him!", name1);
SendClientMessageToAll(COLOR_RED, string);
}
case 50:
{
SendClientMessage(killerid, -1,"Your now on Killstreak of 50!!");
forward(string, sizeof(string), "ULTIMATE MASTER KILLER %s has killed 50 suspects!, stop him and KILL him!", name1);
SendClientMessageToAll(COLOR_RED, string);
}
}

The problem comes from the forward lines.



.