02.04.2012, 07:59
This it what i got
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49252 ) : error 017: undefined symbol "GetWeaponModel"
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49253 ) : error 033: array must be indexed (variable "playerweapons")
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49259 ) : error 035: argument type mismatch (argument 3)
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49262 ) : error 033: array must be indexed (variable "playerweapons")
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49270 ) : error 017: undefined symbol "DeleteTime"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
This is what i put in
public DropPlayerWeapon(playerid)
{
new playerweapons[13][2];
new Float,Float:y,Float:z;
new model=GetWeaponModel(playerweapons[0]);
new times=floatround(playerweapons[1]/10.0001);
new string[256];
new Float:X=x+(random(3)-random(3));
new Float:Y=y+(random(3)-random(3));
GetPlayerPos(playerid, x, y, z);
for(new i=0;i<13;i++){
GetPlayerWeaponData(playerid, i, playerweapons[0], playerweapons[1]);
format(string, sizeof(string), "%d", times);
times=strval(string);
if(playerweapons[1]!=0)
{
if(times>DropLimit) times=DropLimit;
for(new a=0;a<times;a++)
{
if(model!=-1)
{
new pickupid=CreatePickup(model, 3, X, Y, z);
SetTimerEx("DeletePickup", DeleteTime*1000, false, "d", pickupid);
}
}
}
}
}
Thank Q For thoes all your help ^_^"
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49252 ) : error 017: undefined symbol "GetWeaponModel"
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49253 ) : error 033: array must be indexed (variable "playerweapons")
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49259 ) : error 035: argument type mismatch (argument 3)
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49262 ) : error 033: array must be indexed (variable "playerweapons")
C:\Users\LionKing\Desktop\К¤ГФ»\Playzone.pwn(49270 ) : error 017: undefined symbol "DeleteTime"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
This is what i put in
public DropPlayerWeapon(playerid)
{
new playerweapons[13][2];
new Float,Float:y,Float:z;
new model=GetWeaponModel(playerweapons[0]);
new times=floatround(playerweapons[1]/10.0001);
new string[256];
new Float:X=x+(random(3)-random(3));
new Float:Y=y+(random(3)-random(3));
GetPlayerPos(playerid, x, y, z);
for(new i=0;i<13;i++){
GetPlayerWeaponData(playerid, i, playerweapons[0], playerweapons[1]);
format(string, sizeof(string), "%d", times);
times=strval(string);
if(playerweapons[1]!=0)
{
if(times>DropLimit) times=DropLimit;
for(new a=0;a<times;a++)
{
if(model!=-1)
{
new pickupid=CreatePickup(model, 3, X, Y, z);
SetTimerEx("DeletePickup", DeleteTime*1000, false, "d", pickupid);
}
}
}
}
}
Thank Q For thoes all your help ^_^"