PDA

View Full Version : Heroin System [:HELP:]


kepa333
11/06/2012, 03:54 PM
I need some help with this i guess i putten some wrong { somewhere and now it aint working The lines



if(strcmp(cmd, "/deliveryheroin", true) == 0) //Made By Maticek
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2172.7830,-215.0502,35.3203))
{
if(PlayerInfo[playerid][DrugDelivery] = 0))
{
PlayerInfo[playerid][DrugDelivery] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Now u delivering heroin");
SafeGivePlayerMoney(playerid, -5000);
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"You aint Allowed To carry More drugs at the Moment");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "you are not in range");
}
return 1;
}

if(strcmp(cmd, "/heroindelivered", true) == 0)//Made By Maticek
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2172.7830,-215.0502,35.3203))
{
if(PlayerInfo[playerid][DrugDelivery] = 0))
{
PlayerInfo[playerid][DrugDelivery] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Heroin Delivered");
SafeGivePlayerMoney(playerid, 10000);
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"You havent Bought the Drugs yet");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "you are not in range");
}
return 1;
}




errors

C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(3891) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(3983) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(4329) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(4372) : error 017: undefined symbol "GetVehicleName"
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(4372) : warning 202: number of arguments does not match definition
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(4388) : error 004: function "IsASalesVehicle" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(4398) : error 004: function "GetVehiclePrice" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(4521) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(6461) : error 004: function "ClearChatbox" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(6998) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7038) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7067) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7114) : error 004: function "SaveGuns" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7118) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7122) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7126) : error 004: function "UpdatePlayerPosition" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7232) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7233) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7242) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7243) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7275) : error 004: function "RemoveRoadblock" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7339) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7345) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7359) : error 004: function "SetRealMoney" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7362) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7364) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(7401) : error 004: function "SafeResetPlayerWeapons" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

JhnzRep
11/06/2012, 03:56 PM
if(strcmp(cmd, "/deliveryheroin", true) == 0) //Made By Maticek
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2172.7830,-215.0502,35.3203))
{
if(PlayerInfo[playerid][DrugDelivery] = 0))
{
PlayerInfo[playerid][DrugDelivery] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Now u delivering heroin");
SafeGivePlayerMoney(playerid, -5000);
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"You aint Allowed To carry More drugs at the Moment");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "you are not in range");
}
return 1;
}

if(strcmp(cmd, "/heroindelivered", true) == 0)//Made By Maticek
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2172.7830,-215.0502,35.3203))
{
if(PlayerInfo[playerid][DrugDelivery] = 0))
{
PlayerInfo[playerid][DrugDelivery] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Heroin Delivered");
SafeGivePlayerMoney(playerid, 10000);
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"You havent Bought the Drugs yet");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "you are not in range");
}
return 1;
}

Should be fixed.

kepa333
11/06/2012, 04:27 PM
[QUOTE=JhnzRep;1917616]
if(strcmp(cmd, "/deliveryheroin", true) == 0) //Made By Maticek
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2172.7830,-215.0502,35.3203))
{
if(PlayerInfo[playerid][DrugDelivery] = 0))
{
PlayerInfo[playerid][DrugDelivery] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Now u delivering heroin");
SafeGivePlayerMoney(playerid, -5000);
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"You aint Allowed To carry More drugs at the Moment");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "you are not in range");
}
return 1;
}

if(strcmp(cmd, "/heroindelivered", true) == 0)//Made By Maticek
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2172.7830,-215.0502,35.3203))
{
if(PlayerInfo[playerid][DrugDelivery] = 0))
{
PlayerInfo[playerid][DrugDelivery] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Heroin Delivered");
SafeGivePlayerMoney(playerid, 10000);
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"You havent Bought the Drugs yet");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "you are not in range");
}
return 1;
}[/pawn]

Should be fixed.

[PAWNO] aint able to copy from it

kepa333
11/06/2012, 04:38 PM
errors lines C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(31890) : warning 211: possibly unintended assignment
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(31890) : error 029: invalid expression, assumed zero
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(31891) : warning 217: loose indentation
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(31896) : error 029: invalid expression, assumed zero
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(31912) : warning 211: possibly unintended assignment
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(31912) : error 029: invalid expression, assumed zero
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(31913) : warning 217: loose indentation
C:\Users\Snor !\Desktop\Real Life ENG\gamemodes\bmw.pwn(31918) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

JhnzRep
11/06/2012, 04:39 PM
Then I can't help you lol?