SA-MP Forums Archive
Undefined symbol "x_job" +rep who ever helps me! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Undefined symbol "x_job" +rep who ever helps me! (/showthread.php?tid=425653)



Undefined symbol "x_job" +rep who ever helps me! - LuckyPlaya` - 26.03.2013

Errors:

D:\Users\ROBERT\Desktop\-Exclusive Gaming RolePlay 0.3x-\gamemodes\egrp.pwn(53013) : error 017: undefined symbol "x_job"
D:\Users\ROBERT\Desktop\-Exclusive Gaming RolePlay 0.3x-\gamemodes\egrp.pwn(53070) : error 017: undefined symbol "x_job"
D:\Users\ROBERT\Desktop\-Exclusive Gaming RolePlay 0.3x-\gamemodes\egrp.pwn(53101) : error 017: undefined symbol "x_job"
D:\Users\ROBERT\Desktop\-Exclusive Gaming RolePlay 0.3x-\gamemodes\egrp.pwn(53137) : error 017: undefined symbol "x_job"
D:\Users\ROBERT\Desktop\-Exclusive Gaming RolePlay 0.3x-\gamemodes\egrp.pwn(53171) : error 017: undefined symbol "x_job"
D:\Users\ROBERT\Desktop\-Exclusive Gaming RolePlay 0.3x-\gamemodes\egrp.pwn(53225) : error 017: undefined symbol "x_job"
D:\Users\ROBERT\Desktop\-Exclusive Gaming RolePlay 0.3x-\gamemodes\egrp.pwn(53360) : error 017: undefined symbol "x_job"
D:\Users\ROBERT\Desktop\-Exclusive Gaming RolePlay 0.3x-\gamemodes\egrp.pwn(53485) : error 017: undefined symbol "x_job"



Error lines :

else if(strcmp(x_job,"refill",true) == 0)
{
if(RefillOffer[playerid] < 999)
{
if(IsPlayerConnected(RefillOffer[playerid]))
{
if(GetPlayerMoney(playerid) > RefillPrice[playerid])
{
GetPlayerName(RefillOffer[playerid], giveplayer, sizeof(giveplayer));

new car = gLastCar[playerid];
new fuel;
PlayerInfo[RefillOffer[playerid]][pMechSkill] ++;
if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 50)
{ SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 2, you can add more Fuel to any Players Cars."); }
else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 100)
{ SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 3, you can add more Fuel to any Players Cars."); }
else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 200)
{ SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 4, you can add more Fuel to any Players Cars."); }
else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 400)
{ SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 5, you can add more Fuel to any Players Cars."); }
new level = PlayerInfo[RefillOffer[playerid]][pMechSkill];
if(level >= 0 && level <= 50)
{ fuel = 15; }
else if(level >= 51 && level <= 100)
{ fuel = 40; }
else if(level >= 101 && level <= 200)
{ fuel = 60; }
else if(level >= 201 && level <= 400)
{ fuel = 80; }
else if(level >= 401)
{ fuel = 100; }
format(string, sizeof(string), "* You refilled your car with %d%, for $%d by Car Mechanic %s.",fuel,RefillPrice[playerid],giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* You refilled %s's car with %d%, the $%d has been added to your PayCheck.",sendername,fuel,RefillPrice[playerid]);
SendClientMessage(RefillOffer[playerid], COLOR_WHITE, string);
PlayerInfo[RefillOffer[playerid]][pPayCheck] += RefillPrice[playerid] * 5;
SafeGivePlayerMoney(playerid, -RefillPrice[playerid]);
if(Gas[car] < 110) { Gas[car] += fuel; }
RefillOffer[playerid] = 999;
RefillPrice[playerid] = 0;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You cant afford the Refill !");
return 1;
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " No-one offered to Refill your Car !");
return 1;
}
}



I JUST PUTTED ONE PART.


Re: Undefined symbol "x_job" +rep who ever helps me! - Jstylezzz - 26.03.2013

Please, use pawn tags!
Also, you can't just copy paste commands from other modes! You need to make your own or convert it.


Re: Undefined symbol "x_job" +rep who ever helps me! - RajatPawar - 26.03.2013

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
Please, use pawn tags!
Yes, at OP, please use [ pawn ] YOUR CODE HERE [ / pawn ] format.

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
Also, you can't just copy paste commands from other modes! You need to make your own or convert it.
Says who?


Re: Undefined symbol "x_job" +rep who ever helps me! - Dzines4SAMP - 26.03.2013

Why else if(strcmp in the first part?? You have another cmd?


Re: Undefined symbol "x_job" +rep who ever helps me! - Jstylezzz - 26.03.2013

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
Yes, at OP, please use [ pawn ] YOUR CODE HERE [ / pawn ] format.


Says who?
Says who? Think, everyone uses their own parameters, so it's doesn't occur much you can just copy/paste commands with different parameters and expect it to work.


Re: Undefined symbol "x_job" +rep who ever helps me! - LuckyPlaya` - 26.03.2013

Now.. this is like /accept (job,refill,bodyguard..itd)


Re: Undefined symbol "x_job" +rep who ever helps me! - Jstylezzz - 26.03.2013

Do you use ZCMD y_cmd or something, or just the normal strcmp commands for your other commands?


Re: Undefined symbol "x_job" +rep who ever helps me! - LuckyPlaya` - 26.03.2013

strcmp command.


Re: Undefined symbol "x_job" +rep who ever helps me! - Jstylezzz - 26.03.2013

Can you show me one of your other commands, that have those sub things too? You probably need to replace the x_job parameter with the parameter used in other commands. Perhaps you can show your whole accept command too.


Re: Undefined symbol "x_job" +rep who ever helps me! - RajatPawar - 26.03.2013

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
Says who? Think, everyone uses their own parameters, so it's doesn't occur much you can just copy/paste commands with different parameters and expect it to work.
Oh. I thought you said this with moral aim (do not copy, make your own, others' hard work) but I find you were saying it as a matter of fact !