Errors when I add something to my script.
#1

I've been trying to make a DIALOG_STYLE_LIST to collect weapons and select your skin but when I do it, it messes up the whole script and I get the following errors:

Код:
error 017: undefined symbol "UserPath"
error 017: undefined symbol "UserPath"
error 079: inconsistent return types (array & non-array)
error 079: inconsistent return types (array & non-array)
error 017: undefined symbol "SaveAccountStats"
error 079: inconsistent return types (array & non-array)
error 079: inconsistent return types (array & non-array)
error 079: inconsistent return types (array & non-array)
error 017: undefined symbol "UserPath"
error 017: undefined symbol "udb_hash"
error 079: inconsistent return types (array & non-array)
error 017: undefined symbol "udb_hash"
error 017: undefined symbol "UserPath"
error 079: inconsistent return types (array & non-array)
error 079: inconsistent return types (array & non-array)
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "FishCatchTimer" is not implemented
error 079: inconsistent return types (array & non-array)
error 079: inconsistent return types (array & non-array)
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "Speedometer" is not implemented
error 079: inconsistent return types (array & non-array)
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "S@@_OnPlayerSpawn" is not implemented
error 017: undefined symbol "SetPlayerToTeamColor"
error 079: inconsistent return types (array & non-array)
The DIALOG that I try to place is the following
pawn Код:
if(dialogid == DIALOG_RCSDW)
    {
    if(response)
    {
    if(listitem == 0)
    {
    GivePlayerWeapon(playerid, WEAPON_DEAGLE, 24);
    }
    if(listitem == 1)
    {
    GivePlayerWeapon(playerid, WEAPON_SHOTGUN, 12);
    }
    if(listitem == 2)
    {
    GivePlayerWeapon(playerid, 3, 1);
    }
    if(listitem == 3)
    {
    GivePlayerWeapon(playerid, 41, 500);
    {
    if(listitem == 4)
    {
    GivePlayerWeapon(playerid, 43, 300);
    }
    if(dialogid == DIALOG_RCSD)
    {
    if(response)
    {
    if(listitem == 0)
    {
       ShowPlayerDialog(playerid, DIALOG_RCSDW, DIALOG_STYLE_LIST, "Equipment", "Desert Eagle\nShotgun\nNitestick\nPepper Spray\nCamera", "Select","Cancel");
    }
    if(listitem == 1)
    {
      ShowPlayerDialog(playerid, DIALOG_RCSDU, DIALOG_STYLE_LIST, "Uniform", "Chief\nCaptain\nLieutenant\nSergeant\nCorporal\nOfficer\nCadet", "Select","Cancel");
    }
So if anybody could give me some advice on how to fix this it would be greatly appreciated, I am only just starting to learn to script.
Reply
#2

i think you didn't put "}"

thats why it gives error


EDIT: Give us all code from Dialog Response Funtion to } end

sorry for my bad english
Reply
#3

Quote:
Originally Posted by dr.lozer
Посмотреть сообщение
i think you didn't put "}"

thats why it gives error


EDIT: Give us all code from Dialog Response Funtion to } end

sorry for my bad english
OMG THANKYOU SO MUCH! + REP Omg, that's been annoying me so so much, thankyou a lot dude.
Reply
#4

Glad i helped you .... ty for rep xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)