- 0
/buyvip error !
-
Similar Content
-
- 1 reply
- 2.000 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
multisecret2000
Buna Seara sa-mp.ro am si eu o problema cu BuyVIP l-am pus in Ladmin4v2 si cand am bagat tot am urmat si un tutorial imi da errorile astea
C:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : error 017: undefined symbol "bvip"
C:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : error 017: undefined symbol "Cancel"
C:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : error 029: invalid expression, assumed zero
C:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Uitati si scriptu
#include < dcmd >
dcmd_buyvip(playerid,params[])
{
#pragma unused params
ShowPlayerDialog(playerid,bvip,DIALOG_STYLE_LIST,"BuyVip","{FFFFFF}VIP Level 1 {FFAF00} --> {FF0000} 20 Hours\n{FFFFFF}VIP Level 2 {FFAF00} --> {FF0000} 40 Hours\n{FFFFFF}VIP Level 3 {FFAF00} --> {FF0000}60 Hours","Select","Cancel);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == bvip)
{
if(response)
{
if(listitem == 0)
{
if AccInfo[playerid][hours] >= 20)
{
AccInfo[playerid][pVip] = 1;
AccInfo[playerid][hours] -= 20;
}
else
{
SendClienMessage(playerid,green,"You Don't Have 20 Hours for Buy VIP Level 1 ");
}
}
if(listitem == 1)
{
if AccInfo[playerid][hours] >= 40)
{
AccInfo[playerid][pVip] = 2;
AccInfo[playerid][hours] -= 40;
}
else
{
SendClienMessage(playerid,green,"You Don't Have 40 Hours for Buy VIP Level 2 ");
}
}
if (listitem == 2)
{
if AccInfo[playerid][hours] >= 60)
{
AccInfo[playerid][pVip] = 3;
AccInfo[playerid][hours] = 60;
}
else
{
SendClienMessage(playerid,green,"You Don't Have 60 Hours for Buy VIP Level 3 ");
}
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
{
dcmd(buyvip,6,cmdtext);
return 1;
}
cam atat
9 answers to this question
Recommended Posts