A little help.
#1

Код:
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;
  	    }
  	}
Reply
#2

Код:
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
Reply
#3

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
Reply
#4

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
Reply
#5

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
Reply
#6

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
Reply
#7

Код:
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;
}
Reply
#8

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.
Reply
#9

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
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)