C:\Users\Mohamad\Desktop\San Andreas Roleplay\gamemodes\sarp.pwn(1975) : error 017: undefined symbol "DropInfo"
C:\Users\Mohamad\Desktop\San Andreas Roleplay\gamemodes\sarp.pwn(1975) : error 036: empty statement
C:\Users\Mohamad\Desktop\San Andreas Roleplay\gamemodes\sarp.pwn(1975) : error 017: undefined symbol "i"
C:\Users\Mohamad\Desktop\San Andreas Roleplay\gamemodes\sarp.pwn(1975) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
for(new i = 0; i < sizeof(DropInfo); i++)
forward crackpick(playerid);
public crackpick(playerid)
{
for(new i = 0; i < sizeof(DropInfo); i++)
{
if (PlayerToPoint(1.0,playerid,DropInfo[i][dx],DropInfo[i][dy],DropInfo[i][dz]))
{
if(GetPlayerVirtualWorld(playerid) == DropInfo[i][dWorld])
{
DestroyObject(DropObject[i]);
DropInfo[i][dx] = 0.0;
DropInfo[i][dy] = 0.0;
DropInfo[i][dz] = 0.0;
if(DropInfo[i][dType] == 5) // Crack
{
new string[256];
format(string,sizeof(string),"* %s picks up %d grams of crack.",Name(playerid),DropInfo[i][dAmount]);
ProxDetector(30.0,playerid,string,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
PlayerInfo[playerid][pCrack] += DropInfo[i][dAmount][0];
DropInfo[i][dAmount][0] = 0;
DropInfo[i][dAmount][1] = 0;
DropInfo[i][dType] = 0;
}
}
}
}
}
#define MAX_DROPS 150
Change your DropInfo to some sort of amount to attempt the loop, so is this basically a looting system? Where you pick things up and drop'em? Anyways, just add something like
pawn Код:
|