SA-MP Forums Archive
Help :s - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help :s (/showthread.php?tid=255459)



Help :s - [KO]KillerThriller - 15.05.2011

pawn Код:
stock LoadBankCPS()
{
    new BankCount;
    for(new i = 0; i < MAX_CHECK_POINTS;i++)
    {
        BankCP[i] = CreateDynamicCP(bankcp[i][0],bankcp[i][1],bankcp[i][2],bankcp[i][3],-1,-1,-1,120.0);
        BankCount++;
    }
    printf("||- Banks loaded: %i -||",BankCount);
    return 1;
}
pawn Код:
new Float:bankcps[][1] =
{
    {1026.9849,-1582.9633,13.5469,2.0}
};
error line:
pawn Код:
BankCP[i] = CreateDynamicCP(bankcp[i][0],bankcp[i][1],bankcp[i][2],bankcp[i][3],-1,-1,-1,120.0);
Код:
C:\Users\Admin\Desktop\test server\gamemodes\gamem.pwn(3163) : error 017: undefined symbol "bankcp"
C:\Users\Admin\Desktop\test server\gamemodes\gamem.pwn(3163) : warning 215: expression has no effect
C:\Users\Admin\Desktop\test server\gamemodes\gamem.pwn(3163) : error 001: expected token: ";", but found "]"
C:\Users\Admin\Desktop\test server\gamemodes\gamem.pwn(3163) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\test server\gamemodes\gamem.pwn(3163) : fatal error 107: too many error messages on one line



Re: Help :s - [KO]KillerThriller - 15.05.2011

Sorry to double post but i updated the thread... i sitll have the problem.


Re: Help :s - lowrida018 - 15.05.2011

You have all the files, includes, etc.?


Re: Help :s - [KO]KillerThriller - 15.05.2011

Quote:
Originally Posted by lowrida018
Посмотреть сообщение
You have all the files, includes, etc.?
Yes, but what does it matter?


Re: Help :s - NRJ53 - 15.05.2011

I don't know but try
pawn Код:
new Float:bankcps[3][1] =
{
    {1026.9849,-1582.9633,13.5469,2.0}
};
or
pawn Код:
new Float:bankcps[1][3] =
{
    {1026.9849,-1582.9633,13.5469,2.0}
};