#1

This Command to give players car refund but i got error.
PHP код:
CMD:vrefund(playeridparams[])
{
    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(playeridRFDVEHDIALOG_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(playeridparams[])
{
    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(playeridCOLOR_GREY"USAGE: /grantvrefund [player]");
    if(
GetPVarInt(giveplayerid"VehicleRefund") != 1) {
        
SetPVarInt(giveplayerid"VehicleRefund"1);
        
SendClientMessageEx(giveplayeridCOLOR_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;

and this the error

PHP код:
C:\Users\pc\Downloads\rotana\Server Files\gamemodes\R-RP.pwn(54927) : error 017undefined symbol "RFDVEH" 
Reply
#2

pawn Код:
#define RFDVEH 1000
Make sure you use RFDVEH on OnDialogResponse too.
Reply
#3

Quote:

Make sure you use RFDVEH on OnDialogResponse too.

How to add it, sorry am not scripter.
Reply
#4

Bump anyone help
Reply
#5

Put it at the top of your script under #include <a_samp> and before main()
Reply
#6

Quote:

#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];

Just this..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)