.pwn(8450) : error 035: argument type mismatch (argument 1)
cmd = strtok(cmdtext,idx);
if(!strcmp(cmd,"/attack",true))
{
new money[256];
money = strtok(cmdtext, idx);
if(!strlen(money))
{
SendClientMessage(playerid,COLOR_YELLOW,"* Use: /attack [money - "100000"]");
return 1;
}
// other things.
new IsAttackCountTimer = SetTimer("IsAttackTimer", 60000, false);
IsAttackTimer(money, gang, gplace, IsAttackCountTimer, playerid); // Line 8450
return 1;
}
forward IsAttackTimer(money, gang, gplace, IsAttackCountTimer, playerid);
public IsAttackTimer(money, gang, gplace, IsAttackCountTimer, playerid)
{
new Message[410];
format(Message,sizeof(Message),"*{FFFFFF}[{FF0000}Attack{FFFFFF}] {FF0000}%s {FFFFFF}Gang is Attacking a {FF9900AA}%s for {33AA33AA}%s {FFFFFF} USD.",gang, gplace, money);
SendClientMessageToAll(0xB8860BAA,Message);
}
stock IsAttackTimer(money, gang, gplace, IsAttackCountTimer, playerid)
{
new Message[410];
format(Message,sizeof(Message),"*{FFFFFF}[{FF0000}Attack{FFFFFF}] {FF0000}%s {FFFFFF}Gang is Attacking a {FF9900AA}%s for {33AA33AA}%s {FFFFFF} USD.",gang, gplace, money);
SendClientMessageToAll(0xB8860BAA,Message);
}
forward IsAttackTimer(money[], gang, gplace, IsAttackCountTimer, playerid);
public IsAttackTimer(money[], gang, gplace, IsAttackCountTimer, playerid)
|
IsAttackTimer(money[], gang, gplace, IsAttackCountTimer, playerid); // Line 8450 and here forward IsAttackTimer(money[], gang, gplace, IsAttackCountTimer, playerid); public IsAttackTimer(money[], gang, gplace, IsAttackCountTimer, playerid) |
|
error 029: invalid expression, assumed zero |
|
error 035: argument type mismatch (argument 2) |
|
IsAttackTimer(money, gang, gplace, IsAttackCountTimer, playerid); |
|
new gang[128]; if(playerDB[playerid][plead] == 12) gang = "Grove Street"; new gplace[128]; gplace = "Bank"; |