SA-MP Forums Archive
A little help. - 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: A little help. (/showthread.php?tid=265270)



A little help. - danodanodano - 30.06.2011

Код:
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\LRP.pwn(78) : error 001: expected token: "-identifier-", but found "("
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\LRP.pwn(80) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\LRP.pwn(82) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\LRP.pwn(89) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\LRP.pwn(26781) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\LRP.pwn(27009) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\LRP.pwn(31052) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\LRP.pwn(32901) : warning 215: expression has no effect
Lines:
Код:
stock CreateTiki(Float:x,Float:y,Float:z); // Tiki
{
    for(new i = 0; i < sizeof(TikiInfo); i++)
  	{
  	    if(TikiInfo[i][tCreated] == 0)
  	    {
            TikiInfo[i][tCreated]=1;
            TikiInfo[i][tX]=x;
            TikiInfo[i][tY]=y;
            TikiInfo[i][tZ]=z;
            TikiInfo[i][tPickup] = CreatePickup(1276, 23, x, y, z);
	        return 1;
  	    }
  	}



Re: A little help. - Sasino97 - 30.06.2011

Код:
stock CreateTiki(Float:x,Float:y,Float:z); // Tiki
{
    for(new i = 0; i < sizeof(TikiInfo); i++)
  	{
  	    if(TikiInfo[i][tCreated] == 0)
  	    {
            TikiInfo[i][tCreated]=1;
            TikiInfo[i][tX]=x;
            TikiInfo[i][tY]=y;
            TikiInfo[i][tZ]=z;
            TikiInfo[i][tPickup] = CreatePickup(1276, 23, x, y, z);
	        return 1;
  	    }
  	}
}
EDIT:

Starting of script;
pawn Код:
new tikicount = 0;
Function:
pawn Код:
stock CreateTiki(Float:x,Float:y,Float:z); // Tiki
{
    tikicount ++;

    ikiInfo[tikicount ][tCreated]=1;
    TikiInfo[tikicount ][tX]=x;
    TikiInfo[tikicount ][tY]=y;
    TikiInfo[tikicount ][tZ]=z;
    TikiInfo[tikicount ][tPickup] = CreatePickup(1276, 23, x, y, z);
    return i;
}
Try


Re: A little help. - danodanodano - 30.06.2011

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
Код:
stock CreateTiki(Float:x,Float:y,Float:z); // Tiki
{
    for(new i = 0; i < sizeof(TikiInfo); i++)
  	{
  	    if(TikiInfo[i][tCreated] == 0)
  	    {
            TikiInfo[i][tCreated]=1;
            TikiInfo[i][tX]=x;
            TikiInfo[i][tY]=y;
            TikiInfo[i][tZ]=z;
            TikiInfo[i][tPickup] = CreatePickup(1276, 23, x, y, z);
	        return 1;
  	    }
  	}
}
Код:
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(78) : error 001: expected token: "-identifier-", but found "("
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(80) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(82) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(89) : error 010: invalid function or declaration



Re: A little help. - Sasino97 - 30.06.2011

Quote:
Originally Posted by danodanodano
Посмотреть сообщение
Код:
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(78) : error 001: expected token: "-identifier-", but found "("
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(80) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(82) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(89) : error 010: invalid function or declaration
Edited:

Starting of script;
pawn Код:
new tikicount = 0;
Function:
pawn Код:
stock CreateTiki(Float:x,Float:y,Float:z) // Tiki - Deleted the ;
{
    tikicount ++;

    TikiInfo[tikicount ][tCreated]=1;
    TikiInfo[tikicount ][tX]=x;
    TikiInfo[tikicount ][tY]=y;
    TikiInfo[tikicount ][tZ]=z;
    TikiInfo[tikicount ][tPickup] = CreatePickup(1276, 23, x, y, z);
    return i;
}
Try


Re: A little help. - danodanodano - 30.06.2011

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
Edited:

Starting of script;
pawn Код:
new tikicount = 0;
Function:
pawn Код:
stock CreateTiki(Float:x,Float:y,Float:z) // Tiki - Deleted the ;
{
    tikicount ++;

    TikiInfo[tikicount ][tCreated]=1;
    TikiInfo[tikicount ][tX]=x;
    TikiInfo[tikicount ][tY]=y;
    TikiInfo[tikicount ][tZ]=z;
    TikiInfo[tikicount ][tPickup] = CreatePickup(1276, 23, x, y, z);
    return i;
}
Try
Код:
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(79) : error 001: expected token: "-identifier-", but found "("
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(88) : error 010: invalid function or declaration



Re: A little help. - Sasino97 - 30.06.2011

pawn Код:
stock CreateTiki(Float:x, Float:y, Float:z)
{
    tikicount ++;

    TikiInfo[tikicount][tCreated] = 1;
    TikiInfo[tikicount][tX] = x;
    TikiInfo[tikicount][tY] = y;
    TikiInfo[tikicount][tZ] = z;
    TikiInfo[tikicount][tPickup] = CreatePickup(1276, 23, x, y, z);
    return tikicount;
}
If the error persists, tell me


Re: A little help. - Skaizo - 30.06.2011

Код:
stock CreateTiki(Float:x, Float:y, Float:z)
{
    tikicount ++

    TikiInfo[tikicount][tCreated] = 1;
    TikiInfo[tikicount][tX] = x;
    TikiInfo[tikicount][tY] = y;
    TikiInfo[tikicount][tZ] = z;
    TikiInfo[tikicount][tPickup] = CreatePickup(1276, 23, x, y, z);
    return tikicount;
}



Re: A little help. - [HiC]TheKiller - 30.06.2011

pawn Код:
stock CreateTiki(Float:x,Float:y,Float:z)
{
    tikicount ++;

    TikiInfo[tikicount ][tCreated]=1;
    TikiInfo[tikicount ][tX]=x;
    TikiInfo[tikicount ][tY]=y;
    TikiInfo[tikicount ][tZ]=z;
    TikiInfo[tikicount ][tPickup] = CreatePickup(1276, 23, x, y, z);
    return tikicount; // You had 'i' here recently, you had no 'i' in the function anywhere.
}
As for the other error, make sure that you don't have a variable named CreateTiki or any forwarding for it.


Re: A little help. - danodanodano - 30.06.2011

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
pawn Код:
stock CreateTiki(Float:x,Float:y,Float:z)
{
    tikicount ++;

    TikiInfo[tikicount ][tCreated]=1;
    TikiInfo[tikicount ][tX]=x;
    TikiInfo[tikicount ][tY]=y;
    TikiInfo[tikicount ][tZ]=z;
    TikiInfo[tikicount ][tPickup] = CreatePickup(1276, 23, x, y, z);
    return tikicount; // You had 'i' here recently, you had no 'i' in the function anywhere.
}
As for the other error, make sure that you don't have a variable named CreateTiki or any forwarding for it.
:/
Код:
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(83) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(84) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(84) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(84) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(84) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(84) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\My Documents\Raven's Roleplay 0.3c\gamemodes\trol.pwn(84) : fatal error 107: too many error messages on one line



Re: A little help. - [HiC]TheKiller - 30.06.2011

What lines are the errors? It would be lovely if you could tell us. Also, show us the area of where the code is placed. Make sure it isn't inside a callback.