Complie Problem
#1

Removed
Reply
#2

Its Already Compiled.
Reply
#3

You mean it's blank ?
Reply
#4

It Means that, you're code is already compiled to .amx file, then you can test it
Reply
#5

He said he doesn't get the 'compilation successful' type of message.

You have a warning(s) in your code.
Please send the lines that you are getting warnings in.

Edit: Do you get compiler stopped working or anything like that?
Reply
#6

Removed
Reply
#7

Quote:
Originally Posted by FisherMan
Посмотреть сообщение
but the server when any one join samp-server.exe its off otmatic see please help me to fixing this crush
PHP код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <Streamer>
#include <foreach>
#include <YSI\y_ini>
CMD:buycar(playeridparams[])
{
    if(!
IsPlayerInRangeOfPoint(playerid22037.3206,1342.9086,10.8203)) return SendClientMessage(playerid, -1"Nu esti langa Dealershipul Grotti.");
    {
        
ShowPlayerDialog(playeridDIALOG_DSHIPDIALOG_STYLE_LIST"{42C2F5}Alege o categorie""Bikes\nNormal Vehicle\nOff-Road Vehicles\nSport Vehicles\nLowriders\nTrucks""Alege""Anuleaza");
     }
        return 
1;
}
if(
dialogid == DIALOG_DSHIP// Dealership main
    
{
        if(
response)
        {
            switch(
listitem)
            {
                case 
0ShowPlayerDialog(playeridDIALOG_DSHIP1DIALOG_STYLE_LIST"{42C2F5}Bikes""BMX (25k)\nMountain (15k)\nFaggio (150k)\nFreeway (350k)\nSanchez (50k)\nQuad (50k)\nPCJ-600 (250k)\nFCR-900 (300k)\nNGR-500 (1,5m)\nWayfarer (200k)""Alege""Anuleaza");
                case 
1ShowPlayerDialog(playeridDIALOG_DSHIP2DIALOG_STYLE_LIST"{42C2F5}Normal Vehicles""Comet (600k)\nFeltzer (500k)\nStallion (350k)\nWindsor (350k)\nSentinel (500k)\nManana (250k)\nElegy (800k)""Choose""Cancel");
                case 
2ShowPlayerDialog(playeridDIALOG_DSHIP3DIALOG_STYLE_LIST"{42C2F5}Off-Road Vehicles""Huntley (600k)\nLandstalker (450k)\nSandking (800k)\nCaddy (250k)""Choose""Cancel");
                case 
3ShowPlayerDialog(playeridDIALOG_DSHIP4DIALOG_STYLE_LIST"{42C2F5}Sport Vehicles""Sultan (800k)\nBanshee (950k)\nBuffalo (1m)\nBullet (2m)\nCheetah (1m)\nJester (800k)\nTurismo (1,8m)\nSabre (650k)\nInfernus (2m)""Alege""Anuleaza");
                case 
4ShowPlayerDialog(playeridDIALOG_DSHIP5DIALOG_STYLE_LIST"{42C2F5}Lowriders""Blade (300k)\nBroadway (200k)\nRemington (500k)\nSavanna (150k)\nSkamvan (300k)\nTornado (200k)\nVoodo (200k)""Alege""Anuleaza");
                case 
5ShowPlayerDialog(playeridDIALOG_DSHIP6DIALOG_STYLE_LIST"{42C2F5}Trucks""Linerunner (1m)\nRoadTrain(1.3m)\nTanker (1m)\nFlatbed (800k)\nYankee (500k)\nMule (600k)""Alege""Anuleaza");
            }
        }
    }
    else if(
dialogid == DIALOG_DSHIP1// Bikes
    
{
        new 
string[128], priceGiveplayeridmodelid;
        if(
response)
        {
            switch(
listitem)
            {
                case 
0: {modelid 481price 25000;} // BMX
                
case 1: {modelid 510price 15000;} // Mountain
                
case 2: {modelid 462price 150000;} // FAGGIO
                
case 3: {modelid 463price 350000;} // FREEWAY
                
case 4: {modelid 468price 50000;} // SANCHEZ
                
case 5: {modelid 471price 50000;} // QUAD
                
case 6: {modelid 461price 250000;} // PCJ-600
                
case 7: {modelid 521price 300000;} // FCR-900
                
case 8: {modelid 522price 1500000;} // NGR-500
                
case 9: {modelid 586price 200000;} // Wayfarer
            
}
            new 
playervehicleid GetPlayerFreeVehicleId(Giveplayerid);
             if(
GetPVarInt(playerid"Cash") < price) return SendClientMessage(playeridCOLOR_GREY"You don't have enough money to buy this car.");
            
GivePlayerCash(playerid, -price);
             
format(stringsizeof(string), "Va multumim ca ati cumparat de la Grotti Dealership.");
            
SendClientMessage(playeridCOLOR_YELLOWstring);
            
CreatePlayerVehicle(Giveplayeridplayervehicleidmodelid532.3726,-1287.4926,17.2422,272.3125,0,0,32000);
            
SetVehicleParamsEx(PlayerInfo[playerid][pVehicles], 0001000);
            
GetVehiclePos(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosX], PlayerInfo[playerid][pvPosY], PlayerInfo[playerid][pvPosZ]);
            
GetVehicleZAngle(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosAngle]);
        }
    }
    else if(
dialogid == DIALOG_DSHIP2// Normal Vehicles
    
{
        new 
string[128], priceGiveplayeridmodelid;
        if(
response)
        {
            switch(
listitem)
            {
                case 
0: {modelid 480price 600000;} // Comet
                
case 1: {modelid 533price 500000;} // Feltzer
                
case 2: {modelid 439price 350000;} // Stallion
                
case 3: {modelid 555price 350000;} // Windsor
                
case 4: {modelid 405price 500000;} // Sentinel
                
case 5: {modelid 410price 250000;} // Manana
                
case 6: {modelid 562price 800000;} // Elegy
            
}
            new 
playervehicleid GetPlayerFreeVehicleId(Giveplayerid);
             if(
GetPVarInt(playerid"Cash") < price) return SendClientMessage(playerid, -1"You don't have enough money to buy this car.");
            
GivePlayerCash(playerid, -price);
             
format(stringsizeof(string), "Va multumim ca ati cumparat de la Grotti Dealership.");
            
SendClientMessage(playeridCOLOR_YELLOWstring);
            
CreatePlayerVehicle(Giveplayeridplayervehicleidmodelid532.3726,-1287.4926,17.2422,272.3125,0,0,32000);
            
SetVehicleParamsEx(PlayerInfo[playerid][pVehicles], 0001000);
            
GetVehiclePos(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosX], PlayerInfo[playerid][pvPosY], PlayerInfo[playerid][pvPosZ]);
            
GetVehicleZAngle(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosAngle]);
        }
    } 
You Need To Host your Server, So Anyone can join
Reply
#8

Removed
Reply
#9

Quote:
Originally Posted by FisherMan
Посмотреть сообщение
but the server when any one join samp-server.exe its off otmatic see please help me to fixing this crush
PHP код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <Streamer>
#include <foreach>
#include <YSI\y_ini>
CMD:buycar(playeridparams[])
{
    if(!
IsPlayerInRangeOfPoint(playerid22037.3206,1342.9086,10.8203)) return SendClientMessage(playerid, -1"Nu esti langa Dealershipul Grotti.");
    {
        
ShowPlayerDialog(playeridDIALOG_DSHIPDIALOG_STYLE_LIST"{42C2F5}Alege o categorie""Bikes\nNormal Vehicle\nOff-Road Vehicles\nSport Vehicles\nLowriders\nTrucks""Alege""Anuleaza");
     }
        return 
1;
}
if(
dialogid == DIALOG_DSHIP// Dealership main
    
{
        if(
response)
        {
            switch(
listitem)
            {
                case 
0ShowPlayerDialog(playeridDIALOG_DSHIP1DIALOG_STYLE_LIST"{42C2F5}Bikes""BMX (25k)\nMountain (15k)\nFaggio (150k)\nFreeway (350k)\nSanchez (50k)\nQuad (50k)\nPCJ-600 (250k)\nFCR-900 (300k)\nNGR-500 (1,5m)\nWayfarer (200k)""Alege""Anuleaza");
                case 
1ShowPlayerDialog(playeridDIALOG_DSHIP2DIALOG_STYLE_LIST"{42C2F5}Normal Vehicles""Comet (600k)\nFeltzer (500k)\nStallion (350k)\nWindsor (350k)\nSentinel (500k)\nManana (250k)\nElegy (800k)""Choose""Cancel");
                case 
2ShowPlayerDialog(playeridDIALOG_DSHIP3DIALOG_STYLE_LIST"{42C2F5}Off-Road Vehicles""Huntley (600k)\nLandstalker (450k)\nSandking (800k)\nCaddy (250k)""Choose""Cancel");
                case 
3ShowPlayerDialog(playeridDIALOG_DSHIP4DIALOG_STYLE_LIST"{42C2F5}Sport Vehicles""Sultan (800k)\nBanshee (950k)\nBuffalo (1m)\nBullet (2m)\nCheetah (1m)\nJester (800k)\nTurismo (1,8m)\nSabre (650k)\nInfernus (2m)""Alege""Anuleaza");
                case 
4ShowPlayerDialog(playeridDIALOG_DSHIP5DIALOG_STYLE_LIST"{42C2F5}Lowriders""Blade (300k)\nBroadway (200k)\nRemington (500k)\nSavanna (150k)\nSkamvan (300k)\nTornado (200k)\nVoodo (200k)""Alege""Anuleaza");
                case 
5ShowPlayerDialog(playeridDIALOG_DSHIP6DIALOG_STYLE_LIST"{42C2F5}Trucks""Linerunner (1m)\nRoadTrain(1.3m)\nTanker (1m)\nFlatbed (800k)\nYankee (500k)\nMule (600k)""Alege""Anuleaza");
            }
        }
    }
    else if(
dialogid == DIALOG_DSHIP1// Bikes
    
{
        new 
string[128], priceGiveplayeridmodelid;
        if(
response)
        {
            switch(
listitem)
            {
                case 
0: {modelid 481price 25000;} // BMX
                
case 1: {modelid 510price 15000;} // Mountain
                
case 2: {modelid 462price 150000;} // FAGGIO
                
case 3: {modelid 463price 350000;} // FREEWAY
                
case 4: {modelid 468price 50000;} // SANCHEZ
                
case 5: {modelid 471price 50000;} // QUAD
                
case 6: {modelid 461price 250000;} // PCJ-600
                
case 7: {modelid 521price 300000;} // FCR-900
                
case 8: {modelid 522price 1500000;} // NGR-500
                
case 9: {modelid 586price 200000;} // Wayfarer
            
}
            new 
playervehicleid GetPlayerFreeVehicleId(Giveplayerid);
             if(
GetPVarInt(playerid"Cash") < price) return SendClientMessage(playeridCOLOR_GREY"You don't have enough money to buy this car.");
            
GivePlayerCash(playerid, -price);
             
format(stringsizeof(string), "Va multumim ca ati cumparat de la Grotti Dealership.");
            
SendClientMessage(playeridCOLOR_YELLOWstring);
            
CreatePlayerVehicle(Giveplayeridplayervehicleidmodelid532.3726,-1287.4926,17.2422,272.3125,0,0,32000);
            
SetVehicleParamsEx(PlayerInfo[playerid][pVehicles], 0001000);
            
GetVehiclePos(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosX], PlayerInfo[playerid][pvPosY], PlayerInfo[playerid][pvPosZ]);
            
GetVehicleZAngle(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosAngle]);
        }
    }
    else if(
dialogid == DIALOG_DSHIP2// Normal Vehicles
    
{
        new 
string[128], priceGiveplayeridmodelid;
        if(
response)
        {
            switch(
listitem)
            {
                case 
0: {modelid 480price 600000;} // Comet
                
case 1: {modelid 533price 500000;} // Feltzer
                
case 2: {modelid 439price 350000;} // Stallion
                
case 3: {modelid 555price 350000;} // Windsor
                
case 4: {modelid 405price 500000;} // Sentinel
                
case 5: {modelid 410price 250000;} // Manana
                
case 6: {modelid 562price 800000;} // Elegy
            
}
            new 
playervehicleid GetPlayerFreeVehicleId(Giveplayerid);
             if(
GetPVarInt(playerid"Cash") < price) return SendClientMessage(playerid, -1"You don't have enough money to buy this car.");
            
GivePlayerCash(playerid, -price);
             
format(stringsizeof(string), "Va multumim ca ati cumparat de la Grotti Dealership.");
            
SendClientMessage(playeridCOLOR_YELLOWstring);
            
CreatePlayerVehicle(Giveplayeridplayervehicleidmodelid532.3726,-1287.4926,17.2422,272.3125,0,0,32000);
            
SetVehicleParamsEx(PlayerInfo[playerid][pVehicles], 0001000);
            
GetVehiclePos(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosX], PlayerInfo[playerid][pvPosY], PlayerInfo[playerid][pvPosZ]);
            
GetVehicleZAngle(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosAngle]);
        }
    } 
Fisher Chill man.Anyway is this your whole Gamemode?Or is this a part of it?
Reply
#10

Quote:
Originally Posted by FisherMan
Посмотреть сообщение
Hello, Every One
i Making Code But i Dont get
Quote:
Quote:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Or Eny Errors The Complie No There Any Things in it How to Fix This Problem
Have you all see what he has written? I make them bold so you can see
---------------------
Quote:
Originally Posted by FisherMan
Посмотреть сообщение
but the server when any one join samp-server.exe its off otmatic see please help me to fixing this crush
PHP код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <Streamer>
#include <foreach>
#include <YSI\y_ini>
CMD:buycar(playeridparams[])
{
    if(!
IsPlayerInRangeOfPoint(playerid22037.3206,1342.9086,10.8203)) return SendClientMessage(playerid, -1"Nu esti langa Dealershipul Grotti.");
    {
        
ShowPlayerDialog(playeridDIALOG_DSHIPDIALOG_STYLE_LIST"{42C2F5}Alege o categorie""Bikes\nNormal Vehicle\nOff-Road Vehicles\nSport Vehicles\nLowriders\nTrucks""Alege""Anuleaza");
     }
        return 
1;
}
if(
dialogid == DIALOG_DSHIP// Dealership main
    
{
        if(
response)
        {
            switch(
listitem)
            {
                case 
0ShowPlayerDialog(playeridDIALOG_DSHIP1DIALOG_STYLE_LIST"{42C2F5}Bikes""BMX (25k)\nMountain (15k)\nFaggio (150k)\nFreeway (350k)\nSanchez (50k)\nQuad (50k)\nPCJ-600 (250k)\nFCR-900 (300k)\nNGR-500 (1,5m)\nWayfarer (200k)""Alege""Anuleaza");
                case 
1ShowPlayerDialog(playeridDIALOG_DSHIP2DIALOG_STYLE_LIST"{42C2F5}Normal Vehicles""Comet (600k)\nFeltzer (500k)\nStallion (350k)\nWindsor (350k)\nSentinel (500k)\nManana (250k)\nElegy (800k)""Choose""Cancel");
                case 
2ShowPlayerDialog(playeridDIALOG_DSHIP3DIALOG_STYLE_LIST"{42C2F5}Off-Road Vehicles""Huntley (600k)\nLandstalker (450k)\nSandking (800k)\nCaddy (250k)""Choose""Cancel");
                case 
3ShowPlayerDialog(playeridDIALOG_DSHIP4DIALOG_STYLE_LIST"{42C2F5}Sport Vehicles""Sultan (800k)\nBanshee (950k)\nBuffalo (1m)\nBullet (2m)\nCheetah (1m)\nJester (800k)\nTurismo (1,8m)\nSabre (650k)\nInfernus (2m)""Alege""Anuleaza");
                case 
4ShowPlayerDialog(playeridDIALOG_DSHIP5DIALOG_STYLE_LIST"{42C2F5}Lowriders""Blade (300k)\nBroadway (200k)\nRemington (500k)\nSavanna (150k)\nSkamvan (300k)\nTornado (200k)\nVoodo (200k)""Alege""Anuleaza");
                case 
5ShowPlayerDialog(playeridDIALOG_DSHIP6DIALOG_STYLE_LIST"{42C2F5}Trucks""Linerunner (1m)\nRoadTrain(1.3m)\nTanker (1m)\nFlatbed (800k)\nYankee (500k)\nMule (600k)""Alege""Anuleaza");
            }
        }
    }
    else if(
dialogid == DIALOG_DSHIP1// Bikes
    
{
        new 
string[128], priceGiveplayeridmodelid;
        if(
response)
        {
            switch(
listitem)
            {
                case 
0: {modelid 481price 25000;} // BMX
                
case 1: {modelid 510price 15000;} // Mountain
                
case 2: {modelid 462price 150000;} // FAGGIO
                
case 3: {modelid 463price 350000;} // FREEWAY
                
case 4: {modelid 468price 50000;} // SANCHEZ
                
case 5: {modelid 471price 50000;} // QUAD
                
case 6: {modelid 461price 250000;} // PCJ-600
                
case 7: {modelid 521price 300000;} // FCR-900
                
case 8: {modelid 522price 1500000;} // NGR-500
                
case 9: {modelid 586price 200000;} // Wayfarer
            
}
            new 
playervehicleid GetPlayerFreeVehicleId(Giveplayerid);
             if(
GetPVarInt(playerid"Cash") < price) return SendClientMessage(playeridCOLOR_GREY"You don't have enough money to buy this car.");
            
GivePlayerCash(playerid, -price);
             
format(stringsizeof(string), "Va multumim ca ati cumparat de la Grotti Dealership.");
            
SendClientMessage(playeridCOLOR_YELLOWstring);
            
CreatePlayerVehicle(Giveplayeridplayervehicleidmodelid532.3726,-1287.4926,17.2422,272.3125,0,0,32000);
            
SetVehicleParamsEx(PlayerInfo[playerid][pVehicles], 0001000);
            
GetVehiclePos(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosX], PlayerInfo[playerid][pvPosY], PlayerInfo[playerid][pvPosZ]);
            
GetVehicleZAngle(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosAngle]);
        }
    }
    else if(
dialogid == DIALOG_DSHIP2// Normal Vehicles
    
{
        new 
string[128], priceGiveplayeridmodelid;
        if(
response)
        {
            switch(
listitem)
            {
                case 
0: {modelid 480price 600000;} // Comet
                
case 1: {modelid 533price 500000;} // Feltzer
                
case 2: {modelid 439price 350000;} // Stallion
                
case 3: {modelid 555price 350000;} // Windsor
                
case 4: {modelid 405price 500000;} // Sentinel
                
case 5: {modelid 410price 250000;} // Manana
                
case 6: {modelid 562price 800000;} // Elegy
            
}
            new 
playervehicleid GetPlayerFreeVehicleId(Giveplayerid);
             if(
GetPVarInt(playerid"Cash") < price) return SendClientMessage(playerid, -1"You don't have enough money to buy this car.");
            
GivePlayerCash(playerid, -price);
             
format(stringsizeof(string), "Va multumim ca ati cumparat de la Grotti Dealership.");
            
SendClientMessage(playeridCOLOR_YELLOWstring);
            
CreatePlayerVehicle(Giveplayeridplayervehicleidmodelid532.3726,-1287.4926,17.2422,272.3125,0,0,32000);
            
SetVehicleParamsEx(PlayerInfo[playerid][pVehicles], 0001000);
            
GetVehiclePos(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosX], PlayerInfo[playerid][pvPosY], PlayerInfo[playerid][pvPosZ]);
            
GetVehicleZAngle(PlayerInfo[playerid][pVehicles], PlayerInfo[playerid][pvPosAngle]);
        }
    } 
You must update your plugins to use this code *all*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)