Help to make -
gurufan - 09.05.2010
Hi everybody,
I'm trying to make some jobs by using this include
http://forum.sa-mp.com/index.php?topic=165045.0
but i can't make it work when i'm compiling it says
error 017: undefined symbol "Job_OnPlayerPickUpPickup"
somebody help THANKS
Re: Help to make -
iJumbo - 09.05.2010
you have to put under OnPlayerPickUpPickup(....) this Job_OnPlayerPickUpPickup(playerid);
like this
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
Job_OnPlayerPickUpPickup(playerid);
return 1;
}
samp with OnPlayerStateChange and Job_OnPlayerKeyStateChange(playerid, newkeys);
Re: Help to make -
ViruZZzZ_ChiLLL - 09.05.2010
Put it under
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
Job_OnPlayerPickUpPickup(playerid);
return 1;
}
Re: Help to make -
iJumbo - 09.05.2010
and you have to put under #include <a_samp> this > #include <JobCreate.inc>
Re: Help to make -
gurufan - 09.05.2010
not working i'm makinging that
public OnPlayerPickUpPickup(playerid, pickupid)
{
Job_OnPlayerPickUpPickup(playerid);
new string[170];
new propid = -1;
for(new id; id<MAX_PROPERTIES; id++)
{
if(PropInfo[id][PickupNr] == pickupid)
{
propid = id;
break;
}
}
Re: Help to make -
ViruZZzZ_ChiLLL - 09.05.2010
Quote:
Originally Posted by gurufan
not working i'm makinging that
public OnPlayerPickUpPickup(playerid, pickupid)
{
Job_OnPlayerPickUpPickup(playerid);
new string[170];
new propid = -1;
for(new id; id<MAX_PROPERTIES; id++)
{
if(PropInfo[id][PickupNr] == pickupid)
{
propid = id;
break;
}
}
|
Did you include the [INC] Job Create?
Re: Help to make -
gurufan - 09.05.2010
now rally hard to find out what's worng...
C:\Users\Martynas\Desktop\lrg\lrg.pwn(505) : error 021: symbol already defined: "Job"
C:\Users\Martynas\Desktop\lrg\lrg.pwn(656) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\Martynas\Desktop\lrg\lrg.pwn(65
: error 035: argument type mismatch (argument 2)
C:\Users\Martynas\Desktop\lrg\lrg.pwn(659) : warning 213: tag mismatch
C:\Users\Martynas\Desktop\lrg\lrg.pwn(656) : warning 204: symbol is assigned a value that is never used: "name"
C:\Users\Martynas\Desktop\lrg\lrg.pwn(745) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\Martynas\Desktop\lrg\lrg.pwn(746) : error 035: argument type mismatch (argument 2)
C:\Users\Martynas\Desktop\lrg\lrg.pwn(750) : warning 213: tag mismatch
C:\Users\Martynas\Desktop\lrg\lrg.pwn(745) : warning 204: symbol is assigned a value that is never used: "name"
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1275) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1276) : error 035: argument type mismatch (argument 2)
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1277) : warning 213: tag mismatch
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1275) : warning 204: symbol is assigned a value that is never used: "name"
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1340) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1342) : error 035: argument type mismatch (argument 2)
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1343) : warning 213: tag mismatch
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1380) : error 035: argument type mismatch (argument 2)
C:\Users\Martynas\Desktop\lrg\lrg.pwn(1381) : warning 213: tag mismatch