SA-MP Forums Archive
Error 035: Argument Type Mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error 035: Argument Type Mismatch (/showthread.php?tid=445945)



Error 035: Argument Type Mismatch - Vlad64 - 23.06.2013

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:
Код:
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
}
Thanks.


Re: Error 035: Argument Type Mismatch - Antonio144 - 23.06.2013

pawn Код:
new BankRobMoney[] =
Extra [].


Re: Error 035: Argument Type Mismatch - Vlad64 - 23.06.2013

Quote:
Originally Posted by Antonio144
Посмотреть сообщение
pawn Код:
new BankRobMoney[] =
Extra [].
Thanks