CMD:vrefund(playerid, params[])
{
if(GetPVarInt(playerid, "VehicleRefund") == 1) {
if(GetPlayerVirtualWorld(playerid) != 0) return SendClientMessageEx(playerid, -1, "* You must be outside in Virtual World 0.");
if(GetPlayerInterior(playerid) != 0) return SendClientMessageEx(playerid, -1, "* You must be outside in Interior 0.");
ShowPlayerDialog(playerid, RFDVEH, DIALOG_STYLE_LIST, "{3399FF}Refunded Vehicle", "Sultan\nNRG-500\nSandking\nTurismo\nBullet\nAdmiral\nPremier\nElegy\nMaverick", "Choose", "");
}
else
return SendClientMessageEx(playerid, -1, "* You are not eligible or already got your refund.");
return 1;
}
CMD:grantvrefund(playerid, params[])
{
new giveplayerid;
if(PlayerInfo[playerid][pAdmin] != 99999) return SendClientMessageEx(playerid, -1, "You are not authorized to use this command.");
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /grantvrefund [player]");
if(GetPVarInt(giveplayerid, "VehicleRefund") != 1) {
SetPVarInt(giveplayerid, "VehicleRefund", 1);
SendClientMessageEx(giveplayerid, COLOR_ORANGE, "* You have been granted one free vehicle refund by an Executive Director! (/vrefund)");
}
else SendClientMessageEx(playerid, -1, "* That player already has the ability to use /vrefund");
return 1;
}
C:\Users\pc\Downloads\rotana\Server Files\gamemodes\R-RP.pwn(54927) : error 017: undefined symbol "RFDVEH"
#define RFDVEH 1000
Make sure you use RFDVEH on OnDialogResponse too. |
#include <a_samp> #include <streamer> #include <gtazones> #include <foreach> #include <yom_buttons> #include <djson> #include <progress> #include <YSI\y_timers> #include <ZCMD> #include <sscanf2> #include <audio> #include <dini> #include <dudb> #include <dutils> #include <a_players> #pragma tabsize 0 /*native PlayAudioStreamForPlayer(playerid, url[], FloatosX = 0.0, FloatosY = 0.0, FloatosZ = 0.0, Float:distance = 50.0, usepos = 0); native StopAudioStreamForPlayer(playerid);*/ // REMEMBER TO CHANGE THE REVISION NUMBER WHEN YOU COMMIT #define SERVER_GM_TEXT "RG:RP v1.0" #define REGISTERSEX 3180 #define REGISTERAGE 3190 new Siren[MAX_VEHICLES]; new zombiemade; new SirenObject[MAX_VEHICLES]; static gTeam[MAX_PLAYERS]; new HasBoughtMask[MAX_PLAYERS]; new IsTempAdmin[MAX_PLAYERS]; |