18.03.2015, 20:31
(
Последний раз редактировалось devil shill; 18.03.2015 в 21:10.
)
Hello,
Well my problem pretty explains itself for some reason the OnPlayerClickPlayerTextDraw aint working anymore like the textdraws are showing perfectly fine but when you click on it nothing happens the weird thing is this part hasnt been messed with at all and was working fine before so i'm wondering if you guys got any suggestion or answer for me to look for.
Anyway here is the Public OnPlayerClickPlayerTextDaw part.
This is part of a vehicle dealership system > how it looks like ingame (But as said nothing happens when clicked on)
http://i.imgur.com/IchYvUC.jpg
Well my problem pretty explains itself for some reason the OnPlayerClickPlayerTextDraw aint working anymore like the textdraws are showing perfectly fine but when you click on it nothing happens the weird thing is this part hasnt been messed with at all and was working fine before so i'm wondering if you guys got any suggestion or answer for me to look for.
Anyway here is the Public OnPlayerClickPlayerTextDaw part.
Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { LogCallback("OnPlayerClickPlayerTextDraw"); if(playertextid == DealerLEFTAR[playerid]) { new string[128]; switch(DealerID[playerid]) { case 1: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 0) { CurrentCar[playerid] = 64; } DealerCar[playerid] = CreateVehicle(CouttAndSoutz[CurrentCar[playerid]-1][0],-1948.4454,260.0867,40.6173,44, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",CouttAndSoutz[CurrentCar[playerid]-1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",CouttAndSoutz[CurrentCar[playerid]-1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] -= 1; } case 2: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 0) { CurrentCar[playerid] = 11; } DealerCar[playerid] = CreateVehicle(GrottiDealer[CurrentCar[playerid]-1][0],-1948.4454,260.0867,40.6173,44, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",GrottiDealer[CurrentCar[playerid]-1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",GrottiDealer[CurrentCar[playerid]-1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] -= 1; } case 3: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 0) { CurrentCar[playerid] = 10; } DealerCar[playerid] = CreateVehicle(BikeDealer[CurrentCar[playerid]-1][0],-1948.4454,260.0867,40.6173,44, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",BikeDealer[CurrentCar[playerid]-1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",BikeDealer[CurrentCar[playerid]-1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] -= 1; } case 4: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 0) { CurrentCar[playerid] = 7; } DealerCar[playerid] = CreateVehicle(VIPDealer[CurrentCar[playerid]-1][0],-1948.4454,260.0867,40.6173,44, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",VIPDealer[CurrentCar[playerid]-1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",VIPDealer[CurrentCar[playerid]-1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] -= 1; } case 5: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 0) { CurrentCar[playerid] = 7; } DealerCar[playerid] = CreateVehicle(AirDealer[CurrentCar[playerid]-1][0],1392.7291,1772.5120,12.1931,241.5812, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",AirDealer[CurrentCar[playerid]-1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",AirDealer[CurrentCar[playerid]-1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] -= 1; } } return 1; } if(playertextid == DealerRIGHTAR[playerid]) { new string[128]; switch(DealerID[playerid]) { case 1: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 63) { CurrentCar[playerid] = -1; } DealerCar[playerid] = CreateVehicle(CouttAndSoutz[CurrentCar[playerid]+1][0], -1948.4454,260.0867,40.6173,44, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",CouttAndSoutz[CurrentCar[playerid]+1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",CouttAndSoutz[CurrentCar[playerid]+1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] += 1; } case 2: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 10) { CurrentCar[playerid] = -1; } DealerCar[playerid] = CreateVehicle(GrottiDealer[CurrentCar[playerid]+1][0], -1948.4454,260.0867,40.6173,44, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",GrottiDealer[CurrentCar[playerid]+1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",GrottiDealer[CurrentCar[playerid]+1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] += 1; } case 3: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 9) { CurrentCar[playerid] = -1; } DealerCar[playerid] = CreateVehicle(BikeDealer[CurrentCar[playerid]+1][0], -1948.4454,260.0867,40.6173,44, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",BikeDealer[CurrentCar[playerid]+1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",BikeDealer[CurrentCar[playerid]+1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] += 1; } case 4: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 6) { CurrentCar[playerid] = -1; } DealerCar[playerid] = CreateVehicle(VIPDealer[CurrentCar[playerid]+1][0], -1948.4454,260.0867,40.6173,44, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",VIPDealer[CurrentCar[playerid]+1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",VIPDealer[CurrentCar[playerid]+1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] += 1; } case 5: { DestroyVehicle(DealerCar[playerid]); if(CurrentCar[playerid] == 6) { CurrentCar[playerid] = -1; } DealerCar[playerid] = CreateVehicle(AirDealer[CurrentCar[playerid]+1][0], 1392.7291,1772.5120,12.1931,241.5812, 1, 1, 1); SetVehicleVirtualWorld(DealerCar[playerid], GetPlayerVirtualWorld(playerid)); CarInfo[DealerCar[playerid]][cUid] = -1; CarInfo[DealerCar[playerid]][cWcar] = -1; format(string, sizeof(string), "PRICE: $%d",AirDealer[CurrentCar[playerid]+1][1]); PlayerTextDrawSetString(playerid, DealerPrice[playerid], string); format(string, sizeof(string), "VEHICLE: %s",AirDealer[CurrentCar[playerid]+1][2]); PlayerTextDrawSetString(playerid, DealerCARNAME[playerid], string); CurrentCar[playerid] += 1; } } return 1; } if(playertextid == DealerRotL[playerid]) { switch(DSCamMove[playerid]) { case 0: { SetPlayerCameraPos(playerid,-1941.7969, 265.3750, 41.5000); SetPlayerCameraLookAt(playerid,-1948.4454,260.0867,40.6173); DSCamMove[playerid] = 1; } case 1: { SetPlayerCameraPos(playerid,-1943.8018,255.1029,42.0471); SetPlayerCameraLookAt(playerid,-1948.4454,260.0867,40.6173); DSCamMove[playerid] = 2; } case 2: { SetPlayerCameraPos(playerid,-1953.6664,255.2928,42.0471); SetPlayerCameraLookAt(playerid,-1948.4454,260.0867,40.6173); DSCamMove[playerid] = 3; } case 3: { SetPlayerCameraPos(playerid,-1955.0258,267.1331,42.0471); SetPlayerCameraLookAt(playerid,-1948.4454,260.0867,40.6173); DSCamMove[playerid] = 0; } } return 1; } if(playertextid == DealerRotR[playerid]) { switch(DSCamMove[playerid]) { case 0: { SetPlayerCameraPos(playerid,-1953.6664,255.2928,42.0471); SetPlayerCameraLookAt(playerid,-1948.4454,260.0867,40.6173); DSCamMove[playerid] = 3; } case 1: { SetPlayerCameraPos(playerid,-1955.0258,267.1331,42.0471); SetPlayerCameraLookAt(playerid,-1948.4454,260.0867,40.6173); DSCamMove[playerid] = 0; } case 2: { SetPlayerCameraPos(playerid,-1941.7969, 265.3750, 41.5000); SetPlayerCameraLookAt(playerid,-1948.4454,260.0867,40.6173); DSCamMove[playerid] = 1; } case 3: { SetPlayerCameraPos(playerid,-1943.8018,255.1029,42.0471); SetPlayerCameraLookAt(playerid,-1948.4454,260.0867,40.6173); DSCamMove[playerid] = 2; } } return 1; } if(playertextid == DealerEXIT[playerid]) { TogglePlayerControllable(playerid, 1); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, DSIcons[DealerID[playerid]-1][0],DSIcons[DealerID[playerid]-1][1],DSIcons[DealerID[playerid]-1][2]); SetCameraBehindPlayer(playerid); DestroyVehicle(DealerCar[playerid]); PlayerTextDrawHide(playerid, DealerBGTD[playerid]); PlayerTextDrawHide(playerid, DealerLEFTAR[playerid]); PlayerTextDrawHide(playerid, DealerRIGHTAR[playerid]); PlayerTextDrawHide(playerid, DealerBUY[playerid]); PlayerTextDrawHide(playerid, DealerEXIT[playerid]); PlayerTextDrawHide(playerid, DealerPrice[playerid]); PlayerTextDrawHide(playerid, DealerCARNAME[playerid]); PlayerTextDrawHide(playerid, DealerRotate[playerid]); PlayerTextDrawHide(playerid, DealerRotL[playerid]); PlayerTextDrawHide(playerid, DealerRotR[playerid]); CancelSelectTextDraw(playerid); DealerCar[playerid] = -1; CurrentCar[playerid] = -1; DealerID[playerid] = -1; return 1; } if(playertextid == DealerBUY[playerid]) { new price; switch(DealerID[playerid]) { case 1: { price = CouttAndSoutz[CurrentCar[playerid]][1]; } case 2: { price = GrottiDealer[CurrentCar[playerid]][1]; } case 3: { price = BikeDealer[CurrentCar[playerid]][1]; } case 4: { price = VIPDealer[CurrentCar[playerid]][1]; } case 5: { price = AirDealer[CurrentCar[playerid]][1]; } } switch(PlayerInfo[playerid][pVIP]) { case 0: { if(GetPlayerCash(playerid) < price) return SCM(playerid, COLOR_LIGHTRED, "You do not have enough money for this car!"); } case 1: { if(GetPlayerCash(playerid) < price / 100 * 95) return SCM(playerid, COLOR_LIGHTRED, "You do not have enough money for this car!"); } case 2: { if(GetPlayerCash(playerid) < price / 100 * 90) return SCM(playerid, COLOR_LIGHTRED, "You do not have enough money for this car!"); } case 3: { if(GetPlayerCash(playerid) < price / 100 * 85) return SCM(playerid, COLOR_LIGHTRED, "You do not have enough money for this car!"); } case 4: { if(GetPlayerCash(playerid) < price / 100 * 75) return SCM(playerid, COLOR_LIGHTRED, "You do not have enough money for this car!"); } } new d = DealerID[playerid]-1, L,A,D,H,T,O, string[128], y,m,da, cmodel[128] ; SetPlayerVirtualWorld(playerid, 0); if(PlayerInfo[playerid][pPcarkey] == 0 || PlayerInfo[playerid][pPcarkey] == 9999) { PlayerInfo[playerid][pPcarkey] = GetVehicleModel(DealerCar[playerid]); switch(DealerID[playerid]) { case 1: { pC1[playerid] = CreateVehicle(CouttAndSoutz[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 2: { pC1[playerid] = CreateVehicle(GrottiDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 3: { pC1[playerid] = CreateVehicle(BikeDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 4: { pC1[playerid] = CreateVehicle(VIPDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 5: { pC1[playerid] = CreateVehicle(AirDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } } n_PutPlayerInVehicle(playerid, pC1[playerid], 0); CarInfo[GetPlayerVehicleID(playerid)][cUid] = playerid; for(new i = 0; i < 10; i++) { CarInfo[pC1[playerid]][cGunTrunk][i] = PlayerInfo[playerid][pCar1GunTrunk][i]; CarInfo[pC1[playerid]][cTrunkAmmo][i] = PlayerInfo[playerid][pCar1TrunkAmmo][i]; } switch(PlayerInfo[playerid][pVIP]) { case 0: { SafeGivePlayerMoney(playerid, -price); PlayerInfo[playerid][pPrice1] = price; } case 1: { SafeGivePlayerMoney(playerid, -price / 100 * 95); PlayerInfo[playerid][pPrice1] = price / 100 * 95; } case 2: { SafeGivePlayerMoney(playerid, -price / 100 * 90); PlayerInfo[playerid][pPrice1] = price / 100 * 90; } case 3: { SafeGivePlayerMoney(playerid, -price / 100 * 85); PlayerInfo[playerid][pPrice1] = price / 100 * 85; } case 4: { SafeGivePlayerMoney(playerid, -price / 100 * 75); PlayerInfo[playerid][pPrice1] = price / 100 * 75; } } SetVehicleParamsEx(pC1[playerid],1,L,A,D,H,T,O); getdate(y,m,d); GetVehicleName(pC1[playerid], cmodel, sizeof(cmodel)); format(string, sizeof(string), "[%d/%d/%d] %s purchased a %s for $%d", m,da,y,GPN(playerid),cmodel,PlayerInfo[playerid][pPrice1]); CarLog(string); } else if(PlayerInfo[playerid][pPcarkey2] == 0 || PlayerInfo[playerid][pPcarkey2] == 9999) { PlayerInfo[playerid][pPcarkey2] = GetVehicleModel(DealerCar[playerid]); switch(DealerID[playerid]) { case 1: { pC2[playerid] = CreateVehicle(CouttAndSoutz[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 2: { pC2[playerid] = CreateVehicle(GrottiDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 3: { pC2[playerid] = CreateVehicle(BikeDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 4: { pC2[playerid] = CreateVehicle(VIPDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 5: { pC2[playerid] = CreateVehicle(AirDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } } n_PutPlayerInVehicle(playerid, pC2[playerid], 0); CarInfo[GetPlayerVehicleID(playerid)][cUid] = playerid; for(new i = 0; i < 10; i++) { CarInfo[pC2[playerid]][cGunTrunk][i] = PlayerInfo[playerid][pCar2GunTrunk][i]; CarInfo[pC2[playerid]][cTrunkAmmo][i] = PlayerInfo[playerid][pCar2TrunkAmmo][i]; } switch(PlayerInfo[playerid][pVIP]) { case 0: { SafeGivePlayerMoney(playerid, -price); PlayerInfo[playerid][pPrice2] = price; } case 1: { SafeGivePlayerMoney(playerid, -price / 100 * 95); PlayerInfo[playerid][pPrice2] = price / 100 * 95; } case 2: { SafeGivePlayerMoney(playerid, -price / 100 * 90); PlayerInfo[playerid][pPrice2] = price / 100 * 90; } case 3: { SafeGivePlayerMoney(playerid, -price / 100 * 85); PlayerInfo[playerid][pPrice2] = price / 100 * 85; } case 4: { SafeGivePlayerMoney(playerid, -price / 100 * 75); PlayerInfo[playerid][pPrice2] = price / 100 * 75; } } SetVehicleParamsEx(pC2[playerid],1,L,A,D,H,T,O); getdate(y,m,d); GetVehicleName(pC2[playerid], cmodel, sizeof(cmodel)); format(string, sizeof(string), "[%d/%d/%d] %s purchased a %s for $%d", m,da,y,GPN(playerid),cmodel,PlayerInfo[playerid][pPrice2]); CarLog(string); } else if(PlayerInfo[playerid][pVIP] >= 2 && PlayerInfo[playerid][pPvipcar] == 9999) { PlayerInfo[playerid][pPvipcar] = GetVehicleModel(DealerCar[playerid]); switch(DealerID[playerid]) { case 1: { pC3[playerid] = CreateVehicle(CouttAndSoutz[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 2: { pC3[playerid] = CreateVehicle(GrottiDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 3: { pC3[playerid] = CreateVehicle(BikeDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 4: { pC3[playerid] = CreateVehicle(VIPDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } case 5: { pC3[playerid] = CreateVehicle(AirDealer[CurrentCar[playerid]][0],DSSpawns[d][0],DSSpawns[d][1],DSSpawns[d][2],DSSpawns[d][3],1,1,-1); } } n_PutPlayerInVehicle(playerid, pC3[playerid], 0); CarInfo[GetPlayerVehicleID(playerid)][cUid] = playerid; for(new i = 0; i < 10; i++) { CarInfo[pC3[playerid]][cGunTrunk][i] = PlayerInfo[playerid][pCar3GunTrunk][i]; CarInfo[pC3[playerid]][cTrunkAmmo][i] = PlayerInfo[playerid][pCar3TrunkAmmo][i]; } switch(PlayerInfo[playerid][pVIP]) { case 3: { SafeGivePlayerMoney(playerid, -price / 100 * 85); PlayerInfo[playerid][pPrice3] = price / 100 * 85; } case 4: { SafeGivePlayerMoney(playerid, -price / 100 * 75); PlayerInfo[playerid][pPrice3] = price / 100 * 75; } } SetVehicleParamsEx(pC3[playerid],1,L,A,D,H,T,O); getdate(y,m,d); GetVehicleName(pC3[playerid], cmodel, sizeof(cmodel)); format(string, sizeof(string), "[%d/%d/%d] %s purchased a %s for $%d", m,da,y,GPN(playerid),cmodel,PlayerInfo[playerid][pPrice3]); CarLog(string); } else return SCM(playerid, COLOR_LIGHTRED, "You don't have any car slots available at this time"); TogglePlayerControllable(playerid, 1); SetCameraBehindPlayer(playerid); DestroyVehicle(DealerCar[playerid]); PlayerTextDrawHide(playerid, DealerBGTD[playerid]); PlayerTextDrawHide(playerid, DealerLEFTAR[playerid]); PlayerTextDrawHide(playerid, DealerRIGHTAR[playerid]); PlayerTextDrawHide(playerid, DealerBUY[playerid]); PlayerTextDrawHide(playerid, DealerEXIT[playerid]); PlayerTextDrawHide(playerid, DealerPrice[playerid]); PlayerTextDrawHide(playerid, DealerCARNAME[playerid]); PlayerTextDrawHide(playerid, DealerRotate[playerid]); PlayerTextDrawHide(playerid, DealerRotL[playerid]); PlayerTextDrawHide(playerid, DealerRotR[playerid]); CancelSelectTextDraw(playerid); CurrentCar[playerid] = -1; DealerCar[playerid] = -1; DealerID[playerid] = -1; SCM(playerid, COLOR_LIGHTBLUE, "Congratulations on your purchase! Make sure you /vpark the car to save it's location"); return 1; } LogCallback("OnPlayerClickPlayerTextdraw"); return 1; }
http://i.imgur.com/IchYvUC.jpg