SA-MP Forums Archive
Problem help here? - 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: Problem help here? (/showthread.php?tid=336313)



Problem help here? - N0FeaR - 21.04.2012

Error i get
Код:
C:\Users\Robins\Desktop\New folder\pawno\include\/CRP/Publics/OnPlayerEnterCheckpoint.pwn(13) : error 017: undefined symbol "CHECKPOINT_NONE"
C:\Users\Robins\Desktop\New folder\pawno\include\/CRP/Publics/OnPlayerEnterCheckpoint.pwn(15) : error 017: undefined symbol "ATMs"
C:\Users\Robins\Desktop\New folder\pawno\include\/CRP/Publics/OnPlayerEnterCheckpoint.pwn(15) : error 036: empty statement
C:\Users\Robins\Desktop\New folder\pawno\include\/CRP/Publics/OnPlayerEnterCheckpoint.pwn(15) : error 017: undefined symbol "i"
code
pawn Код:
case CHECKPOINT_NONE:
        {
            for(new i = 0; i < sizeof(ATMs); i++)
            {
                if(IsPlayerInRangeOfPoint(playerid,3.0,ATMs[i][0],ATMs[i][1],ATMs[i][2]))
                {
                    ShowPlayerDialog(playerid, 143, DIALOG_STYLE_LIST, "Automatic Transaction Machine", "Withdraw\nBalance Enquiry", "Select", "Cancel");
                }
            }



Re: Problem help here? - [MG]Dimi - 21.04.2012

You ahve
pawn Код:
#define CHECKPOINT_NONE
?

If yes can you show me 20 lines before this first line you posted. The problem is maybe there


Re: Problem help here? - ViniBorn - 21.04.2012

pawn Код:
include\/CRP
It's right?


Re: Problem help here? - N0FeaR - 21.04.2012

Код:
#define CHECKPOINT_NONE
i already got that.


Код:
#include "/CRP/



Re: Problem help here? - N0FeaR - 21.04.2012

Anyone know the problem?


Re: Problem help here? - N0FeaR - 22.04.2012

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
You ahve
pawn Код:
#define CHECKPOINT_NONE
?

If yes can you show me 20 lines before this first line you posted. The problem is maybe there
here you go

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    new string[128],sendername[MAX_PLAYER_NAME];
    switch(PlayerInfo[playerid][pCheckpoint])
    {



Re: Problem help here? - Youice - 24.04.2012

I think you have to just add this " #define CHECKPOINT_NONE "number" " at defines and add the number