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
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; } }
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; } } }
new tikicount = 0;
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;
}
Код:
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
Код:
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 |
new tikicount = 0;
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;
}
Edited:
Starting of script; pawn Код:
pawn Код:
|
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
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;
}
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; }
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.
}
pawn Код:
|
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