16.12.2012, 04:27
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:
The DIALOG that I try to place is the following
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.
Код:
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)
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");
}