Help +++Rep
#1

Hey Guys !!
I want to add dialog to my server so I add this dialog
The dialog

Quote:

if(dialogid == DIALOGID0+41 && response)
{
switch(listitem) {
case 0:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned],10);
SetTimerEx("CallVehicleToPlayer",5000,0,"i",player id);
}
case 1:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner2] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned2]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned2]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned2]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned2],10);
SetTimerEx("CallVehicle2ToPlayer",5000,0,"i",playe rid);
}
case 2:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner3] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned3]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned3]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned3]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned3],10);
SetTimerEx("CallVehicle3ToPlayer",5000,0,"i",playe rid);
}
case 3:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner4] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned4]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned4]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned4]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned4],10);
SetTimerEx("CallVehicle4ToPlayer",5000,0,"i",playe rid);
}
case 4:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner5] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned5]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned5]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned5]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned5],10);
SetTimerEx("CallVehicle5ToPlayer",5000,0,"i",playe rid);
}
case 5:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner6] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned6]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned6]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned6]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned6],10);
SetTimerEx("CallVehicle6ToPlayer",5000,0,"i",playe rid);
}
case 6:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner7] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned7]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned7]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned7]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned7],10);
SetTimerEx("CallVehicle7ToPlayer",5000,0,"i",playe rid);
}
case 7:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner8] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned8]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned8]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned8]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned8],10);
SetTimerEx("CallVehicle8ToPlayer",5000,0,"i",playe rid);
}
case 8:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner9] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned9]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned9]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned9]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned9],10);
SetTimerEx("CallVehicle9ToPlayer",5000,0,"i",playe rid);
}
case 9:
{
if(PlayerInfo[playerid][Jailed] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You are in jail and cannot use this feature");
return 1;
}
if(PlayerInterior[playerid] > 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must be outside to call a vehicle to you!");
return 1;
}
if(PlayerInfo[playerid][vowner10] == 0) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You must first own a vehicle before you can use this feature!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't call a vehicle to you if you are in one!");
return 1;
}
if(VehicleInfo[PlayerInfo[playerid][vowned10]][modding] == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
for(new i=0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) == 1) {
if (IsPlayerInAnyVehicle(i) == 1) {
if (GetPlayerVehicleID(i) == PlayerInfo[playerid][vowned10]) {
if(GetPlayerInterior(i) == 1) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "Vehicle currently Busy, try again in a few seconds!");
return 1;
}
SendClientMessage(i, COLOR_BRIGHTRED, "This vehicle has been recalled by its owner, enjoy the walk!");
}
}
}
}
SendClientMessage(playerid, COLOR_ORANGE, "Your vehicle is on its way, It will take about 5 seconds to get to you...");
SetVehicleToRespawn(PlayerInfo[playerid][vowned10]);
SetVehicleVirtualWorld(PlayerInfo[playerid][vowned10],10);
SetTimerEx("CallVehicle10ToPlayer",5000,0,"i",play erid);
}
}

return 0;

Before I add it
Quote:

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

After ::
Quote:

C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2470) : error 017: undefined symbol "GetPlayerCash"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2472) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2474) : error 017: undefined symbol "GetPlayerCash"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2497) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2609) : error 004: function "MessageToPlayerVIP" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2610) : error 004: function "SaveIn" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2620) : error 004: function "MessageToAdmins" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2625) : error 004: function "SaveIn" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2654) : error 004: function "SaveIn" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2672) : error 004: function "SaveIn" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2713) : error 017: undefined symbol "AdvertisementCheck"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2726) : error 004: function "SaveIn" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2761) : error 004: function "MathsWin" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2783) : error 004: function "ReactionWin" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2803) : error 004: function "NumberWin" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2934) : error 004: function "SaveIn" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2955) : error 004: function "SaveIn" is not implemented
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(3045) : error 017: undefined symbol "UpdateConfig"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(3046) : error 017: undefined symbol "ReadTextDraws"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(3061) : error 017: undefined symbol "ShowConfigInConsole"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(22745) : error 017: undefined symbol "LoadVehicles"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(2274 : error 017: undefined symbol "ModVehicle"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(24901) : error 017: undefined symbol "AddAreaCheck"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(24903) : error 017: undefined symbol "AddAreaCheck"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(25060) : error 017: undefined symbol "LuX_ReadPosition"
C:\Users\Ahmed Elgaml\Desktop\MG-v2\gamemodes\MG.pwn(25772) : error 017: undefined symbol "GivePlayerCash"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

What should I do ??
Reply


Messages In This Thread
Help +++Rep - by ahmedebrahem - 05.06.2015, 02:07
Re: Help +++Rep - by PSYCHOBABYKILLA - 05.06.2015, 03:13
Re: Help +++Rep - by ahmedebrahem - 05.06.2015, 03:41
Re: Help +++Rep - by ahmedebrahem - 05.06.2015, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)