23.06.2013, 19:14
Hey, can someone help me with this error? I made this simple bank system for my gm with a /robbank command. The thing is that i get an error. Here's the code:
Error:
Thanks.
Error:
Код:
C:\Users\Vlad\Desktop\Shits\Samp Projects\Green Country RP\gamemodes\GameMode.pwn(5898) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
new BankRobMoney[][] =
{
"6345",
"8598",
"14359",
"18634",
"2638"
};
pawn Код:
public timer_robfinish(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string), "* %s succeedes stealing the cash and closes the bank safe door.",playername);
ProxDetector(30.0, playerid, string, 0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
new string2[128];
format(string2,sizeof(string2),"News: The bank was robbed by %s! Beware, him might be dangerous!",playername);
SendClientMessageToAll(COLOR_ORANGE,string2);
TogglePlayerControllable(playerid,1);
new randommoney = random(sizeof(BankRobMoney));
GivePlayerMoney(playerid,BankRobMoney[randommoney]); //Line 5898
}