Error Again -
hunhunzaza - 02.04.2012
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 ^_^"
Re: Error Again -
Chris1337 - 02.04.2012
you have one more key that you didnt close
Re: Error Again -
hunhunzaza - 02.04.2012
Quote:
Originally Posted by axxelac
you have one more key that you didnt close
|
what do u mean tell me explain
Re: Error Again -
hunhunzaza - 02.04.2012
Please Tell me someone
Re: Error Again -
hunhunzaza - 02.04.2012
UPPPPPP
Re: Error Again -
blank. - 02.04.2012
To start off you don't have GetWeaponModel & DeleteTime in your script, though to me it seems you don't even need it.
What was your initial goal when you coded this?
Re: Error Again -
swindle69 - 02.04.2012
you have alot of strings that you dont need. rethink your script. and by the errors it looks like this code is stopping your compile..
new model=GetWeaponModel(playerweapons[0]);